-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a243607
Showing
107 changed files
with
18,384 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Mypy | ||
|
||
on: [push, workflow_dispatch, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | | ||
bash -s -- --batch | ||
conda env create -f env-dev.yml | ||
conda run --name maize-dev pip install --no-deps . | ||
conda run --name maize-dev pip install types-PyYAML types-toml | ||
- name: Analysing the code with mypy | ||
run: | | ||
conda run --name maize-dev mypy --strict --explicit-package-bases maize/core maize/utilities maize/steps |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Pylint | ||
|
||
on: [push, workflow_dispatch, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
id: conda-cache | ||
with: | ||
path: ./miniconda3 | ||
key: ${{ runner.os }}-conda-${{ hashFiles('**/env-dev.yml') }} | ||
restore-keys: | | ||
${{ runner.os }}-conda-${{ hashFiles('**/env-dev.yml') }} | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
if: steps.conda-cache.outputs.cache-hit != true | ||
run: | | ||
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | | ||
bash -s -- --batch | ||
conda env create -f env-dev.yml | ||
conda run --name maize-dev pip install --no-deps . | ||
- name: Analysing the code with pylint | ||
run: | | ||
conda run --name maize-dev pylint --exit-zero maize/core maize/utilities maize/steps |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Pytest-quick | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
workflow_call: | ||
inputs: | ||
role: | ||
required: true | ||
type: string | ||
default: "test" | ||
push: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | | ||
bash -s -- --batch | ||
conda env create -f env-dev.yml | ||
conda run --name maize-dev pip install --no-deps . | ||
- name: Run fast test suite with pytest | ||
run: | | ||
conda run --name maize-dev pytest --cov=maize --cov-branch --cov-report xml -k "not random" ./tests | ||
- name: Upload coverage | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage-xml | ||
path: ${{ github.workspace }}/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.ipynb_checkpoints | ||
.VSCodeCounter | ||
__pycache__ | ||
*.egg-info | ||
.coverage | ||
.vscode | ||
.pylintrc | ||
.*_cache | ||
*_autosummary | ||
build | ||
coverage | ||
docs/_build | ||
docs/_static | ||
docs/autosummary | ||
docs/Makefile | ||
docs/make.bat | ||
test-config.toml | ||
examples/testing.ipynb |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Primary Authors | ||
=============== | ||
|
||
- [Thomas Löhr](https://github.com/tlhr) | ||
- Marco Klähn | ||
- [Finlay Clark](https://github.com/fjclark) | ||
- Bob van Schendel | ||
- Lili Cao |
Oops, something went wrong.