Merge pull request #1759 from bhilbert4/level3-exposure-page #4007
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 | |
| on: | |
| push: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - run: pip install bandit | |
| - run: bandit ./jwql/ -c .bandit | |
| test: | |
| name: test (Python ${{ matrix.python-version }}, ${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ "ubuntu-latest", "macos-latest" ] | |
| python-version: [ "3.12", "3.13", "3.14" ] | |
| fail-fast: false | |
| env: | |
| PYTHONUNBUFFERED: 1 | |
| defaults: | |
| run: | |
| shell: bash -leo pipefail {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: mamba-org/setup-micromamba@7f29b8b80078b1b601dfa018b0f7425c587c63bb # v2.0.6 | |
| with: | |
| environment-name: jwql-${{ runner.os }}-py${{ matrix.python-version }} | |
| environment-file: environment.yml | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| init-shell: bash | |
| generate-run-shell: false | |
| post-cleanup: none | |
| - run: pip install -e .[test] pytest-xdist | |
| - run: pip list | |
| - run: micromamba env export | |
| - if: runner.os == 'Linux' | |
| uses: supercharge/[email protected] | |
| with: | |
| redis-version: 5.0 | |
| - run: python -c "import jwql; print('Version ' + jwql.__version__); print('Path ' + jwql.__path__[0])" | |
| - run: pytest -n auto jwql/tests/ |