Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
name: ci
name: ci
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: false
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Point the pip cache at an existing dependency file

In the added test job, actions/setup-python@v5 enables the pip cache without cache-dependency-path, so it searches its default dependency manifests (requirements.txt or pyproject.toml). This commit contains neither file—the dependencies are declared in setup.py—causing setup-python to stop before the install, lint, and test steps. Set cache-dependency-path to setup.py/environment.yml or disable caching.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Point the pip cache at an existing dependency file

In the added test job, actions/setup-python@v5 enables the pip cache without cache-dependency-path, so it searches its default dependency manifests (requirements.txt or pyproject.toml). This commit contains neither file—the dependencies are declared in setup.py—causing setup-python to stop before the install, lint, and test steps. Set cache-dependency-path to setup.py/environment.yml or disable caching.

Useful? React with 👍 / 👎.

- run: pip install -e ".[dev]"
- run: ruff check . --exclude notebooks
- run: ruff format --check gsiberror tests setup.py
- run: pytest

deploy:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install mkdocs-material
Expand Down
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ dependencies:
- jupyter_client
- matplotlib
- notebook
- numpy>=1.20.3
- numpy>=1.22
- pip
- python=3.8.2
- python>=3.9.18
- xarray
- pip:
- -e .
Loading
Loading