-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use uv dev dependencies, fix test workflow
- Loading branch information
1 parent
2ba7b72
commit e4a38d6
Showing
7 changed files
with
724 additions
and
34 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Code quality | |
on: | ||
push: | ||
env: | ||
UV_SYSTEM_PYTHON: 1 | ||
UV_SYSTEM_PYTHON: true | ||
|
||
jobs: | ||
|
||
|
@@ -21,13 +21,14 @@ jobs: | |
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.12" | ||
python-version: "3.13" | ||
architecture: x64 | ||
|
||
- name: Install dev dependencies | ||
run: uv pip install -r dev-requirements.txt | ||
run: uv sync --python-preference only-system | ||
|
||
- name: Run ruff | ||
run: | | ||
ruff format --diff . | ||
ruff check --diff . | ||
- name: ruff format | ||
run: uv run ruff format --diff . | ||
|
||
- name: ruff check | ||
run: uv run ruff check --diff . |
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 |
---|---|---|
|
@@ -2,8 +2,7 @@ name: Tests | |
on: | ||
push: | ||
env: | ||
UV_SYSTEM_PYTHON: 1 | ||
SOFTHSM2_CONF: /tmp/softhsm2.conf | ||
UV_SYSTEM_PYTHON: true | ||
|
||
jobs: | ||
|
||
|
@@ -17,20 +16,12 @@ jobs: | |
- "3.11" | ||
- "3.12" | ||
- "3.12" | ||
- "3.13" | ||
|
||
steps: | ||
- name: Install APT dependencies | ||
run: sudo apt-get install -y softhsm2 | ||
|
||
- name: env | ||
run: env | ||
|
||
- name: id | ||
run: id | ||
|
||
- name: Create SoftHSM token | ||
run: softhsm2-util --init-token --free --label TEST --pin 1234 --so-pin 5678 | ||
|
||
- name: Acquire sources | ||
uses: actions/[email protected] | ||
|
||
|
@@ -46,10 +37,10 @@ jobs: | |
architecture: x64 | ||
|
||
- name: Install the project | ||
run: uv sync --all-extras --dev | ||
run: uv sync --all-extras --python-preference only-system --python ${{ matrix.python-version }} | ||
|
||
- name: Install dev dependencies | ||
run: uv pip install -r dev-requirements.txt | ||
- name: ls | ||
run: /usr/lib/softhsm/libsofthsm2.so | ||
|
||
- name: Run tests | ||
run: uv run pytest -v |
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 +1 @@ | ||
3.13 | ||
3.13 |
This file was deleted.
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 was deleted.
Oops, something went wrong.