Merge pull request #56 from lanl/treddy_deps_0.1.0 #118
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: Base CI | |
| on: | |
| push: | |
| branches: | |
| - maintenance/** | |
| pull_request: | |
| branches: | |
| - main | |
| - maintenance/** | |
| 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 and build docs | |
| run: | | |
| numpydoc lint src/gfdl/model.py src/gfdl/activations.py src/gfdl/weights.py | |
| cd docs && make html SPHINXOPTS="-W --keep-going" | |
| - name: test | |
| run: | | |
| cd $RUNNER_TEMP | |
| python -m pytest --pyargs gfdl --cov=gfdl --cov-report=term-missing |