-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into pydantic2
- Loading branch information
Showing
54 changed files
with
3,698 additions
and
1,993 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,58 @@ | ||
name: Deploy documentation | ||
|
||
on: | ||
# Runs on version tags pushes | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
# Runs on manual triggers | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: '1.6.1' | ||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
cache: "poetry" | ||
- name: Check Poetry lock file consistency | ||
run: poetry lock --check | ||
- name: Install dependencies | ||
run: poetry install --sync | ||
- name: Check version numbers consistency | ||
run: poetry run poe version_check | ||
- name: Build documentation | ||
run: poetry run poe docs | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: 'docs/_build' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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,4 +1,4 @@ | ||
name: Examples and unit tests | ||
name: Tests | ||
on: | ||
push: | ||
branches: [ master, 'stable/*' ] | ||
|
@@ -11,7 +11,7 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
poetry-version: [1.5.1] | ||
poetry-version: [1.6.1] | ||
os: ["ubuntu-latest"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -24,10 +24,10 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "poetry" | ||
- name: Check Poetry lock file status | ||
run: poetry lock --check | ||
- name: Check shell scripts | ||
uses: ludeeus/[email protected] | ||
- name: Check Poetry lock file status | ||
run: poetry lock --check | ||
- name: Install coverage tool | ||
run: | | ||
poetry run pip install coverage[toml] | ||
|
@@ -57,24 +57,19 @@ jobs: | |
run: poetry run poe test --cov_opts="-a" # add to examples coverage | ||
- name: Docs | ||
run: poetry run poe docs | ||
- name: Generate HTML coverage report | ||
run: poetry run coverage html --show-contexts | ||
- name: Upload HTML coverage report | ||
uses: actions/upload-artifact@v3 | ||
- name: Generate coverage report | ||
run: poetry run coverage lcov -o coverage.lcov | ||
- name: Upload coverage report | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
file: coverage.lcov | ||
parallel: true | ||
flag-name: run ${{ join(matrix.*, ' - ') }} | ||
finish: | ||
needs: tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Close parallel coverage build | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
name: html-coverage | ||
path: htmlcov/ | ||
# - name: Generate XML coverage report | ||
# run: poetry run coverage xml -o coverage.xml | ||
# - name: Read global coverage target | ||
# id: coverage-target | ||
# run: echo "fail-under=$(poetry run python scripts/read-target-coverage.py)" >> $GITHUB_OUTPUT | ||
# - name: Post coverage comment | ||
# if: ${{ github.event_name == 'pull_request' }} | ||
# uses: orgoro/coverage@v3 | ||
# with: | ||
# coverageFile: coverage.xml | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# thresholdAll: ${{ steps.coverage-target.outputs.fail-under }} | ||
# thresholdNew: 0 | ||
# thresholdModified: 0 | ||
parallel-finished: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,7 @@ htmlcov/ | |
.cache | ||
nosetests.xml | ||
coverage.xml | ||
coverage.lcov | ||
*,cover | ||
.hypothesis/ | ||
test/python/*.log | ||
|
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
docs/_templates/autosummary/class_no_inherited_members.rst
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.