Skip to content

Merge pull request #29 from zacharyburnett/ci/build #40

Merge pull request #29 from zacharyburnett/ci/build

Merge pull request #29 from zacharyburnett/ci/build #40

Workflow file for this run

name: JWST BKG CI
on: [push, pull_request]
jobs:
JWST-BKG-CI:
name: Python - ${{ matrix.python-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
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/