-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 changed file
with
30 additions
and
0 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 |
---|---|---|
|
@@ -13,9 +13,35 @@ on: | |
- master | ||
|
||
jobs: | ||
pre-commit: | ||
name: Prepare pre-commit base | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: Set up Python 3.x | ||
id: python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
check-latest: true | ||
- name: Create Python virtual environment | ||
run: | | ||
python -m venv venv | ||
. venv/bin/activate | ||
python --version | ||
pip install "$(grep '^uv' < requirements_test.txt)" | ||
uv pip install "$(cat requirements_test.txt | grep pre-commit)" | ||
- name: Install pre-commit dependencies | ||
run: | | ||
. venv/bin/activate | ||
pre-commit install-hooks | ||
lint-ruff-format: | ||
name: Check ruff-format | ||
runs-on: ubuntu-22.04 | ||
needs: | ||
- pre-commit | ||
steps: | ||
- name: Check out code from GitHub | ||
uses: actions/[email protected] | ||
|
@@ -35,6 +61,8 @@ jobs: | |
name: Tests | ||
|
||
runs-on: ubuntu-latest | ||
needs: | ||
- lint-ruff-format | ||
|
||
strategy: | ||
matrix: | ||
|
@@ -61,6 +89,8 @@ jobs: | |
name: Test Coverage | ||
|
||
runs-on: ubuntu-latest | ||
needs: | ||
- test | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|