Validate output format and edge cases #582
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
full-tests: | |
name: Run the PyTest tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install environment | |
uses: prefix-dev/[email protected] | |
with: | |
pixi-version: v0.29.0 | |
cache: true | |
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
environments: test | |
activate-environment: true | |
- name: Install Node dependencies | |
run: | | |
npm ci | |
- name: Cache model data | |
uses: actions/cache@v4 | |
with: | |
path: .dvc/cache | |
key: test-dvc-cache-${{ hashFiles('models/**.dvc') }} | |
- name: Fetch model data | |
run: | | |
dvc pull -r public -R models tests | |
- name: Run tests | |
run: | | |
python -m pytest -v | |
nodata-tests: | |
name: Run the PyTest tests without model data | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install environment | |
uses: prefix-dev/[email protected] | |
with: | |
pixi-version: v0.29.0 | |
cache: true | |
# just reuse cache from previous run of other test action | |
cache-write: false | |
environments: test | |
activate-environment: true | |
- name: Run tests | |
run: | | |
python -m pytest -v | |
env: | |
POPROX_CI_WITHOUT_DATA: 1 |