-
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
1 parent
a1eac47
commit 9c1fab1
Showing
6 changed files
with
495 additions
and
777 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 |
---|---|---|
@@ -1,43 +1,33 @@ | ||
--- | ||
|
||
name: PR Tests | ||
|
||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
|
||
jobs: | ||
pr-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: Install poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
python-version: "3.12" | ||
|
||
- name: Install Python dependencies | ||
run: poetry install | ||
run: uv pip install -r requirements.txt | ||
|
||
- name: Formatting with ruff | ||
run: poetry run ruff format --check . | ||
run: uv run ruff format --check . | ||
|
||
- name: Linting with ruff | ||
run: poetry run ruff check . | ||
run: uv run ruff check . | ||
|
||
- name: Linting with mypy | ||
run: poetry run mypy . | ||
run: uv run mypy . | ||
|
||
- name: unittests | ||
run: poetry run pytest -s tests | ||
|
||
|
||
run: uv run pytest -s tests |
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.