Skip to content

Commit

Permalink
Release 0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tlhr committed Aug 19, 2024
0 parents commit a243607
Show file tree
Hide file tree
Showing 107 changed files with 18,384 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/mypy.yml
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
33 changes: 33 additions & 0 deletions .github/workflows/pylint.yml
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
46 changes: 46 additions & 0 deletions .github/workflows/tests-quick.yml
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
18 changes: 18 additions & 0 deletions .gitignore
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
8 changes: 8 additions & 0 deletions AUTHORS.md
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
Loading

0 comments on commit a243607

Please sign in to comment.