-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Showing
4 changed files
with
38 additions
and
93 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 |
---|---|---|
|
@@ -5,9 +5,12 @@ on: | |
push: | ||
|
||
jobs: | ||
deploy: | ||
versions: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
py-versions: ${{ steps.supported-versions.outputs.py-versions }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -22,7 +25,34 @@ jobs: | |
poetry config virtualenvs.in-project true | ||
poetry install | ||
- uses: wntrblm/[email protected] | ||
- id: supported-versions | ||
name: Get supported versions | ||
run: echo "py-versions=$(poetry run ./scripts/supported_py_versions.py)" >> "$GITHUB_OUTPUT" | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
needs: versions | ||
strategy: | ||
matrix: | ||
py-version: ${{ fromJson(needs.versions.outputs.py-versions) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "${{ matrix.py-version }}" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install poetry | ||
poetry config virtualenvs.in-project true | ||
# Only install main dependencies | ||
poetry install --only=main | ||
poetry install pytest | ||
- name: Run unit tests | ||
run: poetry run nox | ||
- name: Run unit tests | ||
run: poetry run pytest |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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