-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to pre-commit.ci and twine check
- Loading branch information
1 parent
ba26a87
commit d0cb044
Showing
2 changed files
with
17 additions
and
13 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 |
---|---|---|
|
@@ -9,12 +9,12 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
python-version: "3.12" | ||
cache: pip | ||
|
||
- name: Install project and dependencies | ||
|
@@ -23,14 +23,20 @@ jobs: | |
- name: Run test suite | ||
run: pytest -v --color=yes | ||
|
||
check: # TODO: replace with pre-commit.ci | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
cache: pip | ||
- uses: pre-commit/[email protected] | ||
env: | ||
SKIP: no-commit-to-branch # only for local development | ||
python-version: "3.12" | ||
# cache: pip # TODO: cache tools | ||
|
||
- name: Install tools | ||
run: pip install twine build | ||
|
||
- name: Build and check | ||
run: | | ||
python -m build | ||
twine check dist/*.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