Skip to content

Commit

Permalink
separate fast and slow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
digicosmos86 committed Aug 26, 2024
1 parent c974d91 commit 51fc981
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run tests
name: Run fast tests

on:
pull_request:
Expand Down Expand Up @@ -42,8 +42,5 @@ jobs:
- name: Run fast tests
run: pytest -n auto -s --ignore=tests/slow

- name: Run slow tests
run: pytest -s tests/slow

- name: build docs
run: mkdocs build
43 changes: 43 additions & 0 deletions .github/workflows/run_slow_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Run slow tests

on:
pull_request:

jobs:
run_tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}

strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v4

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true

- name: install pymc and poetry
run: |
mamba info
mamba install -c conda-forge pymc poetry
- name: install hssm
run: |
poetry export --with dev --without-hashes --output=req.txt
grep -v -E '^jax\[cuda12\]|^nvidia|^jax\-cuda12' req.txt >> requirements.txt
pip install -r requirements.txt
pip install -e .
- name: Run slow tests
run: pytest -s tests/slow

0 comments on commit 51fc981

Please sign in to comment.