Skip to content
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
37 changes: 26 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,34 @@ permissions:
contents: read

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-cpu.yml
environment-name: skala
cache-environment: true
cache-downloads: true

- name: Install package in development mode
run: |
pip install -e . --no-deps
shell: micromamba-shell {0}

- name: Run pre-commit hooks
run: |
pre-commit install
pre-commit run --all-files
shell: micromamba-shell {0}

test:
runs-on: ubuntu-latest
needs:
- pre-commit
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -41,17 +67,6 @@ jobs:
pip install -e . --no-deps
shell: micromamba-shell {0}

- name: Check environment consistency
run: |
pip check
shell: micromamba-shell {0}

- name: Run pre-commit hooks
run: |
pre-commit install
pre-commit run --all-files
shell: micromamba-shell {0}

- name: Run tests with coverage
run: >-
pytest
Expand Down
Loading