Skip to content

NIRISS/SOSS data reduction pipeline #1124

NIRISS/SOSS data reduction pipeline

NIRISS/SOSS data reduction pipeline #1124

name: Pytest Testing
on:
pull_request:
types: [opened,reopened,synchronize]
push:
branches:
- 'main'
- 'releases/**'
jobs:
test:
name: pytest
runs-on: 'ubuntu-latest'
env:
OS: 'ubuntu-latest'
PYTHON: '3.10'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-python@v5
with:
python-version: '3.10.14'
- name: Setup Environment
run: |
python -m pip install --upgrade pip
pip install .[jwst,hst,test]
mkdir $HOME/crds_cache
echo "CRDS_PATH=$HOME/crds_cache" >> $GITHUB_ENV
echo "CRDS_SERVER_URL=https://jwst-crds.stsci.edu" >> $GITHUB_ENV
- name: Log the current Eureka version
run: pip show eureka
- name: Run tests, generate coverage report
run: pytest tests --cov=./src/eureka --cov-report=xml