-
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 7c5c3f1
Showing
7 changed files
with
729 additions
and
43 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,14 +1,9 @@ | ||
name: Code quality | ||
on: | ||
push: | ||
env: | ||
UV_SYSTEM_PYTHON: 1 | ||
|
||
jobs: | ||
|
||
run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Acquire sources | ||
uses: actions/[email protected] | ||
|
@@ -21,13 +16,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: ruff format | ||
run: uv run ruff format --diff . | ||
|
||
- name: Run ruff | ||
run: | | ||
ruff format --diff . | ||
ruff check --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 |
---|---|---|
@@ -1,12 +1,7 @@ | ||
name: Tests | ||
on: | ||
push: | ||
env: | ||
UV_SYSTEM_PYTHON: 1 | ||
SOFTHSM2_CONF: /tmp/softhsm2.conf | ||
|
||
jobs: | ||
|
||
run: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -17,20 +12,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 +33,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: ls /usr/lib/softhsm/libsofthsm2.so | ||
|
||
- name: Run tests | ||
run: uv run pytest -v | ||
run: uv run --python ${{ matrix.python-version }} pytest -v tests/test_slots_and_tokens.py::test_get_mechanisms |
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.