chore: udpates from feedback #15
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| schedule: | |
| # Weekly | |
| - cron: "17 6 * * 1" | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| - name: Sync environment | |
| run: uv sync --frozen | |
| - name: Run pre-commit hooks | |
| run: uv run pre-commit run --all-files | |
| notebooks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - name: Install system libraries for cartopy | |
| run: sudo apt-get update && sudo apt-get install -y libgeos-dev libproj-dev proj-bin proj-data | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| - name: Sync environment | |
| run: uv sync --frozen | |
| - name: Generate REF API client | |
| run: uv run bash scripts/generate_client.sh | |
| - name: Execute all notebooks | |
| run: uv run pytest --nbmake notebooks | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| - name: Sync environment | |
| run: uv sync --frozen | |
| - name: Run helper-package unit tests | |
| run: uv run pytest tests |