Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cicd #20

Merged
merged 5 commits into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,36 @@ jobs:
# Test coveralls (with numba disabled) and normal pytest
test: [ 'coveralls', 'pytest', ]
# Only do coveralls once; pytest on all python versions
python-version: [3.8, 3.9, "3.10"]
python-version: [3.9, "3.10", "3.11", "3.12"]
exclude:
- python-version: 3.8
- python-version: 3.10
test: coveralls
- python-version: 3.9
- python-version: 3.11
test: coveralls
- python-version: 3.12
test: coveralls
steps:
- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install requirements for tests
run: |
pip install --upgrade pip
# Require setuptools for python3.12 as well
pip install setuptools
# Requirements for running the notebooks as a pytest
pip install cython ipython
pip install jinja2==3.0.3
pip install nbconvert nbmake pytest-xdist pytest coverage coveralls pytest-cov pytest-notebook ipython_genutils
# Several optional packages that are imported in the notebooks
pip install git+https://github.com/XENON1T/laidbax
python setup.py develop
pip install -e .
pip install seaborn matplotlib
- name: Test package
if: matrix.test == 'pytest'
run:
Expand Down