Merge pull request #1398 from mfixstsci/astroquery-bug-fix-2023-11-13 #2784
This file contains 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: JWQL CI | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- run: pip install bandit | |
- run: bandit ./jwql/ -c .bandit | |
test: | |
name: test (Python ${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 5 | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: [3.9, "3.10"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: mamba-org/provision-with-micromamba@v15 | |
with: | |
environment-file: ./environment_python_${{ matrix.python-version }}.yml | |
cache-env: true | |
cache-downloads: true | |
- run: pip install -e .[test] | |
- run: conda env export | |
- uses: supercharge/redis-github-action@1.4.0 | |
with: | |
redis-version: 5.0 | |
if: runner.os == 'Linux' | |
- run: python -c "import jwql; print('Version ' + jwql.__version__); print('Path ' + jwql.__path__[0])" | |
- run: pytest jwql/tests/ |