-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Refactor dependency management in pyproject.toml and Makefile; upd…
…ate CI workflow for improved linting and coverage
- Loading branch information
Showing
4 changed files
with
406 additions
and
18 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 |
---|---|---|
|
@@ -14,14 +14,20 @@ env: | |
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.12'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: astral-sh/setup-uv@v3 | ||
with: | ||
enable-cache: true | ||
|
||
- run: uv sync --python 3.12 --frozen --no-dev --group lint | ||
- name: Install dependencies | ||
run: uv sync --python ${{ matrix.python-version }} --group lint --all-extras | ||
|
||
- uses: pre-commit/[email protected] | ||
with: | ||
|
@@ -48,10 +54,12 @@ jobs: | |
with: | ||
enable-cache: true | ||
|
||
- name: Install Extra Dependencies | ||
run: uv sync --frozen --group all --all-extras | ||
- name: Install extra dependencies | ||
run: uv sync --group dev --all-extras | ||
|
||
- name: Make coverage directory | ||
run: mkdir coverage | ||
|
||
- run: mkdir coverage | ||
- run: uv run --frozen coverage run -m pytest | ||
env: | ||
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }} | ||
|
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.