-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from pastas/dev
Release v1.5.0
- Loading branch information
Showing
35 changed files
with
1,204 additions
and
1,170 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,20 +32,13 @@ jobs: | |
pip install . | ||
pip install ".[lint]" | ||
- name: Run black | ||
uses: psf/black@stable | ||
with: | ||
options: "--check --diff" | ||
jupyter: true | ||
|
||
- name: Run isort | ||
run: | | ||
isort --check --diff --profile=black ./pastastore | ||
- name: ruff-lint | ||
uses: chartboost/ruff-action@v1 | ||
|
||
- name: Run flake8 | ||
run: | | ||
flake8 --count --show-source --exit-zero --max-line-length=88 ./pastastore | ||
flake8 --count --exit-zero --max-line-length=88 --statistics ./pastastore | ||
- name: ruff-format | ||
uses: chartboost/ruff-action@v1 | ||
with: | ||
args: "format --check" | ||
|
||
test: | ||
name: Tests | ||
|
@@ -54,15 +47,22 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
pastas-version: | ||
[ | ||
"git+https://github.com/pastas/[email protected]", | ||
"git+https://github.com/pastas/[email protected]", | ||
"git+https://github.com/pastas/[email protected]", | ||
"git+https://github.com/pastas/pastas.git@v1.4.0", | ||
"git+https://github.com/pastas/pastas.git@v1.5.0", | ||
"git+https://github.com/pastas/pastas.git@dev", | ||
] | ||
exclude: | ||
- python-version: "3.12" | ||
pastas-version: "git+https://github.com/pastas/[email protected]" | ||
- python-version: "3.12" | ||
pastas-version: "git+https://github.com/pastas/[email protected]" | ||
- python-version: "3.12" | ||
pastas-version: "git+https://github.com/pastas/[email protected]" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -74,24 +74,34 @@ jobs: | |
cache: "pip" | ||
cache-dependency-path: pyproject.toml | ||
|
||
- name: Install dependencies | ||
- name: Install dependencies < PY312 | ||
if: ${{ matrix.python-version != '3.12'}} | ||
run: | | ||
pip install --upgrade pip | ||
pip install numpy | ||
pip install ${{ matrix.pastas-version }} | ||
pip install -e .[test] | ||
- name: Install dependencies == PY312 | ||
if: ${{ matrix.python-version == '3.12'}} | ||
run: | | ||
pip install --upgrade pip | ||
pip install numpy | ||
pip install ${{ matrix.pastas-version }} | ||
pip install -e .[test_py312] | ||
- name: Run pytest | ||
run: | | ||
pytest -m "not bgmap" | ||
- name: Test backgroundmap once | ||
if: ${{ matrix.python-version == '3.9' && matrix.pastas-version == 'git+https://github.com/pastas/pastas.git@dev' }} | ||
if: ${{ matrix.python-version == '3.11' && matrix.pastas-version == 'git+https://github.com/pastas/pastas.git@dev' }} | ||
run: | | ||
pytest -m "bgmap" | ||
- name: Run codacy-coverage-reporter | ||
if: ${{ github.repository == 'pastas/pastastore' && success() }} | ||
uses: codacy/codacy-coverage-reporter-action@master | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
project-token: ${{ secrets.CODACY_API_TOKEN }} | ||
coverage-reports: coverage.xml |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# ruff: noqa: D100 | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Configuration file for the Sphinx documentation builder. | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.