[pre-commit.ci] pre-commit autoupdate #163
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: Pytest | |
| on: [pull_request, push] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| env: | |
| # https://github.com/pytest-dev/pytest/issues/2042#issuecomment-429289164 | |
| PY_IGNORE_IMPORTMISMATCH: 1 | |
| jobs: | |
| pytest: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12"] | |
| fail-fast: false | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup environment | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-name: opera_tropo | |
| environment-file: conda-env.yml | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| eval "$(micromamba shell hook --shell bash)" | |
| micromamba activate opera_tropo | |
| python -m pip install --no-deps . | |
| - name: Run tests with Pytest | |
| run: | | |
| eval "$(micromamba shell hook --shell bash)" | |
| micromamba activate opera_tropo | |
| pytest . --maxfail=1 --disable-warnings -v |