Skip to content

Commit

Permalink
Update run slow tests skip slow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
digicosmos86 committed Aug 27, 2024
1 parent 60356c8 commit 76ca0a2
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/run_slow_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
jobs:
run_tests:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip slow tests')"
defaults:
run:
shell: bash -el {0}
Expand All @@ -16,28 +17,29 @@ jobs:
python-version: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v3
- name: Install lapack
run: |
apt-get update
apt-get install liblapack-dev
- name: Install Python
uses: actions/setup-python@v2
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 poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- 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: Install hssm
run: poetry install

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

0 comments on commit 76ca0a2

Please sign in to comment.