File tree Expand file tree Collapse file tree 27 files changed +917
-1
lines changed
Expand file tree Collapse file tree 27 files changed +917
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy static content to Pages
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ # Allows you to run this workflow manually from the Actions tab
7+ workflow_dispatch :
8+
9+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
16+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : false
20+
21+ jobs :
22+ # Single deploy job since we're just deploying
23+ deploy :
24+ environment :
25+ name : github-pages
26+ url : ${{ steps.deployment.outputs.page_url }}
27+ runs-on : ubuntu-latest
28+ steps :
29+ - name : Checkout
30+ uses : actions/checkout@v3
31+ - name : Setup Pages
32+ uses : actions/configure-pages@v3
33+ - name : Set up Python 3.12
34+ uses : actions/setup-python@v3
35+ with :
36+ python-version : " 3.12"
37+ - name : Install dependencies
38+ run : |
39+ python -m pip install --upgrade pip
40+ python -m pip install poetry
41+ poetry config virtualenvs.create false
42+ poetry install --no-root --with dev
43+ - name : Build static pages
44+ run : make docs-build
45+ - name : Upload artifact
46+ uses : actions/upload-pages-artifact@v1
47+ with :
48+ path : ' ./site'
49+ - name : Deploy to GitHub Pages
50+ id : deployment
51+ uses : actions/deploy-pages@v2
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Python 3.10
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Python 3.10
19+ uses : actions/setup-python@v3
20+ with :
21+ python-version : " 3.10"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install poetry
26+ poetry config virtualenvs.create false
27+ poetry install --no-root --with dev
28+ - name : Test with pytest
29+ run : |
30+ make ci-test
31+ - name : Check typing
32+ run : |
33+ make typing
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Python 3.11
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Python 3.11
19+ uses : actions/setup-python@v3
20+ with :
21+ python-version : " 3.11"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install poetry
26+ poetry config virtualenvs.create false
27+ poetry install --no-root --with dev
28+ - name : Test with pytest
29+ run : |
30+ make ci-test
31+ - name : Check typing
32+ run : |
33+ make typing
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Python 3.12
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Python 3.12
19+ uses : actions/setup-python@v3
20+ with :
21+ python-version : " 3.12"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install poetry
26+ poetry config virtualenvs.create false
27+ poetry install --no-root --with dev
28+ - name : Test with pytest
29+ run : |
30+ make ci-test
31+ - name : Check typing
32+ run : |
33+ make typing
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Python 3.8
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Python 3.8
19+ uses : actions/setup-python@v3
20+ with :
21+ python-version : " 3.8"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install poetry
26+ poetry config virtualenvs.create false
27+ poetry install --no-root --with dev
28+ - name : Test with pytest
29+ run : |
30+ make ci-test
31+ - name : Check typing
32+ run : |
33+ make typing
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Python 3.9
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Python 3.9
19+ uses : actions/setup-python@v3
20+ with :
21+ python-version : " 3.9"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install poetry
26+ poetry config virtualenvs.create false
27+ poetry install --no-root --with dev
28+ - name : Test with pytest
29+ run : |
30+ make ci-test
31+ - name : Check typing
32+ run : |
33+ make typing
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Python code style
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+ quality :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Python 3.12
19+ uses : actions/setup-python@v3
20+ with :
21+ python-version : " 3.12"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install poetry
26+ poetry config virtualenvs.create false
27+ poetry install --no-root --with dev
28+ - name : Check code style with black
29+ run : |
30+ make format
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Python lint
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+ quality :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Python 3.12
19+ uses : actions/setup-python@v3
20+ with :
21+ python-version : " 3.12"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install poetry
26+ poetry config virtualenvs.create false
27+ poetry install --no-root --with dev
28+ - name : Lint with ruff
29+ run : make lint
Original file line number Diff line number Diff line change 1+ # This workflow will publish a python package on pypi, when a release is created
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Python publish
5+
6+ on :
7+ release :
8+ types : [published]
9+
10+ permissions :
11+ contents : read
12+
13+ jobs :
14+ publish :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v3
19+ - name : Set up Python 3.12
20+ uses : actions/setup-python@v3
21+ with :
22+ python-version : " 3.12"
23+ - name : Install dependencies
24+ run : |
25+ python -m pip install --upgrade pip
26+ python -m pip install poetry poetry-dynamic-versioning
27+ - name : Publish
28+ env :
29+ POETRY_PYPI_TOKEN_PYPI : ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
30+ run : |
31+ poetry build
32+ poetry publish
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Python code quality
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+ quality :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Python 3.12
19+ uses : actions/setup-python@v3
20+ with :
21+ python-version : " 3.12"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install poetry
26+ poetry config virtualenvs.create false
27+ poetry install --no-root --with dev
28+ - name : Test & publish code coverage
29+ uses : paambaati/codeclimate-action@v3.2.0
30+ env :
31+ CC_TEST_REPORTER_ID : ${{ secrets.CODECLIMATE_REPORTER_ID }}
32+ with :
33+ coverageCommand : make ci-coverage
34+ coverageLocations : |
35+ ${{github.workspace}}/coverage.lcov:lcov
36+ debug : true
You can’t perform that action at this time.
0 commit comments