-
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.
run test in github actions (and with pytest)
- Loading branch information
1 parent
f77616e
commit 3747fe5
Showing
3 changed files
with
49 additions
and
7 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
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Code quality | ||
on: | ||
push: | ||
env: | ||
UV_SYSTEM_PYTHON: 1 | ||
|
||
jobs: | ||
|
||
run: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
- "3.12" | ||
|
||
steps: | ||
- name: Install APT dependencies | ||
run: sudo apt-get install -y softhsm2 | ||
|
||
- name: Create SoftHSM token | ||
run: softhsm2-util --init-token --free --label TEST --pin 1234 --so-pin 5678 | ||
|
||
- name: Acquire sources | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
enable-cache: true | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5.0.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
||
- name: Install the project | ||
run: uv sync --all-extras --dev | ||
|
||
- name: Install dev dependencies | ||
run: uv pip install -r dev-requirements.txt | ||
|
||
- 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ setuptools_scm | |
oscrypto | ||
cryptography | ||
parameterized | ||
pytest==8.3.4 | ||
ruff==0.8.2 | ||
sphinx | ||
sphinx-rtd-theme |