-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into merge-largeint-and-range
- Loading branch information
Showing
72 changed files
with
1,134 additions
and
737 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,32 +31,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up environment | ||
uses: ./.github/actions/setup-env | ||
with: | ||
python-version: 3.8 | ||
nox-setup: "dev tools" | ||
|
||
- name: Run pre-commit | ||
id: pre-commit | ||
uses: pre-commit/[email protected] | ||
env: | ||
SKIP: 'flake8' | ||
|
||
# Run flake8 and have it format the linting errors in the format of | ||
# the GitHub Workflow command to register error annotations. This | ||
# means that our flake8 output is automatically added as an error | ||
# annotation to both the run result and in the "Files" tab of a | ||
# pull request. | ||
# | ||
# Format used: | ||
# ::error file={filename},line={line},col={col}::{message} | ||
- name: Run flake8 | ||
id: flake8 | ||
if: always() && (steps.pre-commit.outcome == 'success' || steps.pre-commit.outcome == 'failure') | ||
run: "flake8 \ | ||
--format='::error file=%(path)s,line=%(row)d,col=%(col)d::\ | ||
[flake8] %(code)s: %(text)s'" | ||
|
||
docs: | ||
# unlike the other workflows, we are using version 20.04 here as | ||
|
@@ -69,7 +46,6 @@ jobs: | |
uses: ./.github/actions/setup-env | ||
with: | ||
python-version: 3.8 | ||
nox-setup: "docs" | ||
|
||
- name: Run sphinx-build | ||
run: nox -s docs -- --keep-going -W -w $GITHUB_STEP_SUMMARY | ||
|
@@ -89,9 +65,17 @@ jobs: | |
- name: Set up environment | ||
id: setup-env | ||
uses: ./.github/actions/setup-env | ||
env: | ||
PDM_USE_VENV: true | ||
PDM_VENV_IN_PROJECT: true | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
nox-setup: "*" | ||
|
||
- name: Install dependencies out of venv | ||
run: | | ||
pdm export --pyproject --without-hashes -d -G speed -G docs -G voice -o requirements.txt | ||
pip install -r requirements.txt | ||
pip install . | ||
- name: Set pyright version | ||
run: | | ||
|
@@ -100,6 +84,7 @@ jobs: | |
- name: Run pyright (Linux) | ||
uses: jakebailey/[email protected] | ||
id: pyright-linux | ||
with: | ||
version: ${{ env.PYRIGHT_VERSION }} | ||
python-version: ${{ steps.setup-env.outputs.python-version }} | ||
|
@@ -109,7 +94,7 @@ jobs: | |
|
||
- name: Run pyright (Windows) | ||
uses: jakebailey/[email protected] | ||
if: ${{ success() || failure() }} # run regardless of previous step's result | ||
if: always() && (steps.pyright-linux.outcome == 'success' || steps.pyright-linux.outcome == 'failure') | ||
with: | ||
version: ${{ env.PYRIGHT_VERSION }} | ||
python-version: ${{ steps.setup-env.outputs.python-version }} | ||
|
@@ -127,7 +112,6 @@ jobs: | |
uses: ./.github/actions/setup-env | ||
with: | ||
python-version: 3.8 | ||
nox-setup: tools | ||
|
||
- name: Run slotscheck | ||
if: (success() || failure()) && steps.setup.outcome == 'success' | ||
|
@@ -178,7 +162,9 @@ jobs: | |
uses: ./.github/actions/setup-env | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
dependencies: nox coveralls==3.3.1 coverage[toml]~=6.3.2 | ||
|
||
- name: Install dependencies | ||
run: pdm install -dG test # needed for coverage | ||
|
||
- name: Test package install | ||
run: | | ||
|
@@ -198,7 +184,7 @@ jobs: | |
if: always() && (steps.run_tests.outcome == 'success' || steps.run_tests.outcome == 'failure') | ||
run: | | ||
echo "$GITHUB_STEP_SUMMARY_HEADER" | sed "s/#name#/Coverage Summary/" >> $GITHUB_STEP_SUMMARY | ||
python -m coverage report | tee -a $GITHUB_STEP_SUMMARY | ||
pdm run coverage report | tee -a $GITHUB_STEP_SUMMARY | ||
echo "$GITHUB_STEP_SUMMARY_FOOTER" >> $GITHUB_STEP_SUMMARY | ||
|
@@ -215,7 +201,9 @@ jobs: | |
COVERALLS_FLAG_NAME: coverage-${{ runner.os }}-python-${{ matrix.python-version }} | ||
COVERALLS_PARALLEL: true | ||
COVERALLS_SERVICE_NAME: github | ||
run: python -m coveralls | ||
run: | | ||
python -m pip install coveralls==3.3.1 'coverage[toml]~=6.5' | ||
python -m coveralls | ||
coveralls-finish: | ||
name: Indicate completion to coveralls.io | ||
|
@@ -234,15 +222,15 @@ jobs: | |
python-version: 3.8 | ||
cache-dependency-path: | | ||
.github/workflows/lint-test.yml | ||
dependencies: coveralls==3.3.1 | ||
- name: Coveralls Finished | ||
continue-on-error: true | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_SERVICE_NAME: github | ||
run: | | ||
python3 -m coveralls --finish | ||
python -m pip install coveralls==3.3.1 | ||
python -m coveralls --finish | ||
# thanks to aiohttp for this part of the workflow | ||
check: # This job does nothing and is only used for the branch protection | ||
|
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 |
---|---|---|
|
@@ -30,5 +30,8 @@ venvs/ | |
.idea | ||
.coverage* | ||
coverage.xml | ||
__pypackages__/ | ||
.pdm.toml | ||
pdm.lock | ||
|
||
!test_bot/locale/*.json |
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
Oops, something went wrong.