Skip to content

CI, DOC: Separate docs build from CI test jobs, deployment #130

CI, DOC: Separate docs build from CI test jobs, deployment

CI, DOC: Separate docs build from CI test jobs, deployment #130

Workflow file for this run

name: Base CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -v ".[test]"
python -m pip install ruff==0.13.1
python -m pip install -r .github/constraints/deps.txt
- name: lint
run: |
ruff check
- name: lint docs
run: |
numpydoc lint src/gfdl/model.py src/gfdl/activations.py src/gfdl/weights.py
- name: test
run: |
cd $RUNNER_TEMP
python -m pytest --pyargs gfdl --cov=gfdl --cov-report=term-missing