validation-rcts #16
This file contains hidden or 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: validation-rcts | |
| on: | |
| schedule: | |
| - cron: "0 6 * * 1" # weekly, Monday 06:00 UTC | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - "src/synthdiet/simulation/**" | |
| - "src/synthdiet/diseases/**" | |
| - "src/synthdiet/diets/**" | |
| - "src/synthdiet/validation/**" | |
| - ".github/workflows/validation.yml" | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install package | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev,viz]" | |
| - name: Run validation suite | |
| run: | | |
| pytest -m slow tests/test_validation.py -v --tb=short | |
| - name: Upload validation log | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: validation-log | |
| path: | | |
| .pytest_cache/ |