Add pytest to conda env #54
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
| name: test_package | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: "ubuntu-latest" | |
| env: | |
| # Bandage is a Qt application; on the headless CI runner there is no | |
| # display, so run it with the offscreen platform plugin to avoid | |
| # "Bandage binary not found" (a non-zero exit from a failed Qt init). | |
| QT_QPA_PLATFORM: offscreen | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: "Install Conda environment with Micromamba" | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: conda_env.yml | |
| environment-name: sarand | |
| cache-environment: true | |
| - name: "Install sarand" | |
| shell: bash -l {0} | |
| run: pip install '.[test]' | |
| - name: "Run test" | |
| shell: bash -l {0} | |
| run: bash test/test.sh |