-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9adb712
commit 61dceb6
Showing
2 changed files
with
31 additions
and
24 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 |
---|---|---|
|
@@ -28,11 +28,9 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: install tools | ||
run: just install-dev-deps | ||
# skip deps on all these since we just installed everything | ||
- name: check types (mypy, [email protected]) | ||
run: just --no-deps mypy | ||
run: just typecheck-mypy | ||
# skip deps on all these since mypy installed everything | ||
- name: check linting | ||
run: just --no-deps lint | ||
- name: check formatting | ||
|
@@ -77,29 +75,29 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: | ||
- { version: "3.6", env: "py36" } | ||
- { version: "3.7", env: "py37" } | ||
- { version: "3.8", env: "py38" } | ||
- { version: "3.9", env: "py39" } | ||
- { version: "3.10", env: "py310" } | ||
- { version: "3.11", env: "py311" } | ||
- { version: "3.12", env: "py312" } | ||
- { version: "pypy-3.7", env: "py3.7" } | ||
- { version: "pypy-3.8", env: "py3.8" } | ||
- { version: "pypy-3.9", env: "py3.9" } | ||
- { version: "pypy-3.10", env: "py3.10" } | ||
name: Test (${{ matrix.python.version }}) | ||
python_version: | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
- "pypy-3.7" | ||
- "pypy-3.8" | ||
- "pypy-3.9" | ||
- "pypy-3.10" | ||
name: Test (${{ matrix.python.python_version }}) | ||
steps: | ||
- uses: extractions/setup-just@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python.version }} | ||
- name: Set up Python ${{ matrix.python_version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python.version }} | ||
python-version: ${{ matrix.python_version }} | ||
- uses: stripe/openapi/actions/stripe-mock@master | ||
|
||
- name: "Install test deps" | ||
- name: "run tests" | ||
run: just test | ||
|
||
publish: | ||
|
@@ -135,7 +133,7 @@ jobs: | |
# could probably move this into a just recipe too? | ||
run: | | ||
set -ex | ||
source venv/bin/activate | ||
source .venv/bin/activate | ||
export VERSION=$(cat VERSION) | ||
gpg --detach-sign --local-user $GPG_SIGNING_KEYID --pinentry-mode loopback --passphrase $GPG_SIGNING_PASSPHRASE -a dist/stripe-$VERSION.tar.gz | ||
gpg --detach-sign --local-user $GPG_SIGNING_KEYID --pinentry-mode loopback --passphrase $GPG_SIGNING_PASSPHRASE -a dist/stripe-$VERSION-py2.py3-none-any.whl | ||
|
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