-
Notifications
You must be signed in to change notification settings - Fork 7
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
e07d268
commit 1dc4668
Showing
4 changed files
with
105 additions
and
83 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 |
---|---|---|
|
@@ -18,12 +18,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | ||
- name: Update version number | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: sed -i -e "s/0.0.0/${GITHUB_REF##*/}/" pyproject.toml | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Check isort, black, and flake8 | ||
|
@@ -33,7 +33,7 @@ jobs: | |
black . | ||
flake8 . | ||
- name: Install Python Poetry | ||
uses: snok/[email protected] | ||
uses: snok/install-poetry@d45b6d76012debf457ab49dffc7fb7b2efe8071d # v1.3.3 | ||
- name: Install project dependencies | ||
run: poetry install --no-interaction --with dev | ||
- name: Run tests with coverage | ||
|
@@ -58,13 +58,13 @@ jobs: | |
- name: Build | ||
run: poetry build | ||
- name: Upload dist artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3 | ||
with: | ||
name: dist | ||
path: dist | ||
if-no-files-found: error | ||
- name: Upload coverage HTML artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3 | ||
with: | ||
name: coverage | ||
path: htmlcov | ||
|
@@ -77,9 +77,9 @@ jobs: | |
if: startsWith(github.ref, 'refs/tags/') | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3 | ||
with: | ||
name: dist | ||
path: dist | ||
|
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.