-
Notifications
You must be signed in to change notification settings - Fork 0
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
7 changed files
with
1,250 additions
and
2,016 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 |
---|---|---|
|
@@ -10,43 +10,32 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: Load cached Poetry installation | ||
id: cached-poetry | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.local | ||
key: poetry-0 | ||
- name: Load cached env | ||
id: cached-env | ||
uses: actions/cache@v4 | ||
with: | ||
path: /home/runner/.cache/pypoetry/virtualenvs | ||
key: venv-0 | ||
- name: Install Poetry | ||
if: steps.cached-poetry.outputs.cache-hit != 'true' | ||
uses: snok/install-poetry@v1 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
enable-cache: true | ||
cache-dependency-glob: "uv.lock" | ||
|
||
- name: Set up Python | ||
run: uv python install | ||
|
||
- name: Install dependencies | ||
run: uv sync --all-extras --dev | ||
|
||
- name: Run tests for PR | ||
env: | ||
PYTHONDONTWRITEBYTECODE: 1 | ||
run: | | ||
poetry install | ||
poetry run pytest --cov-config=.coveragerc --cov=. | ||
poetry run coverage xml | ||
uv run pytest --cov-config=.coveragerc --cov=. | ||
uv run coverage xml | ||
- name: Get Cover | ||
if: github.event_name == 'pull_request' | ||
uses: orgoro/[email protected] | ||
with: | ||
coverageFile: coverage.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
thresholdAll: 0.98 | ||
- name: Run tests | ||
|
||
- name: Run coverage report | ||
if: github.event_name != 'pull_request' | ||
run: | | ||
poetry run coverage report | ||
run: uv run coverage report |
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
Oops, something went wrong.