fix(ci): use simple runner for release gh release and docker #72
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| name: "test" | |
| jobs: | |
| # In the future, move with unix,macos,windows tests for better | |
| # distribution. | |
| generic-test: | |
| name: "Test" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: "Checkout source code" | |
| uses: "actions/checkout@v4" | |
| - name: "Setup nightly toolchain" | |
| uses: "actions-rs/toolchain@v1" | |
| with: | |
| toolchain: "nightly" | |
| - name: "Use Rust cache" | |
| uses: "Swatinem/rust-cache@v2" | |
| with: | |
| cache-on-failure: true | |
| - name: "Setup Python" | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.9" | |
| cache: "pip" | |
| - name: "Install dependencies" | |
| run: | | |
| pip install -r requirements.txt | |
| - name: "Cargo test" | |
| run: | | |
| cargo test --workspace --all-features |