Skip to content

fix: dataset_order #1801

fix: dataset_order

fix: dataset_order #1801

name: Test PR
on:
pull_request:
types: [opened, synchronize, reopened]
# The Test PR workflow is not run on release PRs, since the release PRs are already tested in the "Test Release" workflow
paths-ignore:
- ".release-please-manifest.json"
- "training/CHANGELOG.md"
- "graphs/CHANGELOG.md"
- "models/CHANGELOG.md"
push:
branches:
- main
schedule:
- cron: "9 2 * * 0" # at 9:02 on sunday
workflow_dispatch:
jobs:
quality:
uses: ecmwf/reusable-workflows/.github/workflows/qa-precommit-run.yml@v2
with:
skip-hooks: "no-commit-to-branch"
pytest:
strategy:
fail-fast: false
matrix:
platform: ["ubuntu-latest", "macos-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.platform }}
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-md pytest-emoji
- name: Install packages
run: |
# Install all packages from local
pip install -e ./training[all,tests] -e ./graphs[all,tests] -e ./models[all,tests]
- name: Run pytest for training package
uses: pavelzw/pytest-action@v2
with:
report-title: "Test report Anemoi Training (python ${{ matrix.python-version }} on ${{ matrix.platform }})"
custom-pytest: pytest ./training
- name: Run pytest for graphs package
uses: pavelzw/pytest-action@v2
with:
report-title: "Test report Anemoi Graphs (python ${{ matrix.python-version }} on ${{ matrix.platform }})"
custom-pytest: pytest ./graphs
- name: Run pytest for models package
uses: pavelzw/pytest-action@v2
with:
report-title: "Test report Anemoi Models (python ${{ matrix.python-version }} on ${{ matrix.platform }})"
custom-pytest: pytest ./models