-
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
0e2a518
commit 79feb31
Showing
3 changed files
with
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Acquire sources | ||
uses: actions/[email protected] | ||
|
||
|
@@ -25,12 +24,6 @@ jobs: | |
python-version: "3.12" | ||
architecture: x64 | ||
|
||
- name: Apply caching of dependencies | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ hashFiles('**/requirements-*.txt') }} | ||
|
||
- name: Install dev dependencies | ||
run: uv pip install -r dev-requirements.txt | ||
|
||
|
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,55 @@ | ||
name: Tests | ||
on: | ||
push: | ||
env: | ||
UV_SYSTEM_PYTHON: 1 | ||
SOFTHSM2_CONF: /tmp/softhsm2.conf | ||
|
||
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: 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] | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
enable-cache: true | ||
|
||
- name: Setup Python | ||
uses: actions/[email protected] | ||
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 |