Skip to content

Commit 476232a

Browse files
authored
Merge pull request #401 from mathLab/0.2
Version 0.2
2 parents f0bff24 + ccbafc6 commit 476232a

File tree

502 files changed

+132661
-23388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

502 files changed

+132661
-23388
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixes #ISSUE_NUMBER

.github/workflows/ci.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/create-release.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/deployer.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: "Deployer"
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
10+
docs: #######################################################################
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install Python dependencies
16+
run: python3 -m pip install .[doc]
17+
18+
- name: Build Documentation
19+
run: |
20+
make html
21+
working-directory: docs/
22+
23+
- name: Deploy
24+
uses: peaceiris/actions-gh-pages@v3
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
#deploy_key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
28+
publish_dir: ./docs/build/html
29+
allow_empty_commit: true
30+
31+
release_github: #############################################################
32+
runs-on: ubuntu-latest
33+
permissions:
34+
contents: write
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: ncipollo/release-action@v1
38+
with:
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
41+
pypi: #######################################################################
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
46+
- name: Install build
47+
run: >-
48+
python -m pip install build --user
49+
50+
- name: Build a binary wheel and a source tarball
51+
run: >-
52+
python -m build --sdist --wheel --outdir dist/ .
53+
54+
- name: Publish distribution to PyPI
55+
if: startsWith(github.ref, 'refs/tags')
56+
uses: pypa/gh-action-pypi-publish@release/v1
57+
with:
58+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/draft-pdf.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
name: Black Formatter
1+
name: Master Cleaner
22

33
on:
44
push:
55
branches:
66
- master
77

88
jobs:
9-
linter:
9+
formatter:
1010
name: runner / black
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- uses: psf/black@stable
1616
with:
17-
options: "-l 80"
1817
src: "./pina"
1918

2019
- name: Create Pull Request
@@ -27,4 +26,4 @@ jobs:
2726
There appear to be some python formatting errors in ${{ github.sha }}. This pull request
2827
uses the [psf/black](https://github.com/psf/black) formatter to fix these issues.
2928
base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch
30-
branch: actions/black
29+
branch: actions/black
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Monthly Automated Tag
1+
name: "Monthly Tagger"
22

33
on:
44
schedule:
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
needs: test
3232
steps:
33-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v4
3434
with:
3535
token: ${{ secrets.NDEMO_PAT_TOKEN }}
3636

.github/workflows/pypi-publish.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/sphinx-build.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/tester.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: "Testing Pull Request"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "master"
7+
- "dev"
8+
9+
jobs:
10+
unittests: #################################################################
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [windows-latest, macos-latest, ubuntu-latest]
16+
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install Python dependencies
25+
run: |
26+
python3 -m pip install --upgrade pip
27+
python3 -m pip install .[test]
28+
29+
- name: Test with pytest
30+
run: |
31+
python3 -m pytest
32+
33+
linter: ####################################################################
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- name: Run Black formatter (check mode)
39+
uses: psf/black@stable
40+
with:
41+
src: "./pina"
42+
43+
testdocs: ##################################################################
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- name: Install Python dependencies
49+
run: python3 -m pip install .[doc]
50+
51+
- name: Build Documentation
52+
run: |
53+
make html SPHINXOPTS+='-W'
54+
working-directory: docs/
55+
56+
coverage: ##################################################################
57+
runs-on: ubuntu-latest
58+
59+
steps:
60+
- uses: actions/checkout@v4
61+
62+
- name: Install Python dependencies
63+
run: |
64+
python3 -m pip install --upgrade pip
65+
python3 -m pip install .[test]
66+
67+
- name: Generate coverage report
68+
run: |
69+
python3 -m pytest --cov-report term --cov-report xml:cobertura.xml --cov=pina
70+
71+
- name: Produce the coverage report
72+
uses: insightsengineering/coverage-action@v2
73+
with:
74+
path: ./cobertura.xml
75+
threshold: 80.123
76+
fail: true
77+
publish: true
78+
coverage-summary-title: "Code Coverage Summary"

0 commit comments

Comments
 (0)