Update GHA Pipeline #21
Workflow file for this run
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: JWST BKG CI | |
on: [push, pull_request] | |
jobs: | |
JWST-BKG-CI: | |
name: Python - ${{ matrix.python-version }} - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 5 | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: [3.10, 3.11, 3.12] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pip/pytest | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Install Package and Test | |
run: | | |
pip install -e .[test] pytest-xdist | |
pytest -n auto jwst_backgrounds/tests/ |