aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/tests.yml
diff options
context:
space:
mode:
authorJán Jančár2025-11-22 13:52:24 +0100
committerGitHub2025-11-22 13:52:24 +0100
commit8436df07381295b05a0cc892cca27e475629ee80 (patch)
tree9b940ee0a8851baaff67567c4004cd3c2cc027fd /.github/workflows/tests.yml
parent7cfa1c9fc498013d1a4807e5a11f55f39e6595aa (diff)
parent21aa562cdd1c21cc66e0b19b52b414af2782377e (diff)
downloadsec-certs-main.tar.gz
sec-certs-main.tar.zst
sec-certs-main.zip
Merge pull request #530 from crocs-muni/fix/try-spacyHEADmain
Move to uv
Diffstat (limited to '.github/workflows/tests.yml')
-rw-r--r--.github/workflows/tests.yml17
1 files changed, 6 insertions, 11 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index a7ee60a2..e39ce058 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -21,22 +21,17 @@ jobs:
- name: Install Poppler
run: sudo apt-get install -y build-essential libpoppler-cpp-dev pkg-config python3-dev
- uses: actions/checkout@v4
- - name: Setup python ${{ matrix.python-version }}
- uses: actions/setup-python@v5
+ - name: Install uv and Python
+ uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- cache: "pip"
- cache-dependency-path: |
- requirements/test_requirements.txt
- - name: Install python dependencies
- run: |
- pip install -r requirements/test_requirements.txt
+ enable-cache: true
- name: Install sec-certs
run: |
- pip install -e .
- python -m spacy download en_core_web_sm
+ uv sync --locked --dev
+ uv run spacy download en_core_web_sm
- name: Run tests
- run: pytest --cov=sec_certs -m "not remote" --junitxml=junit.xml -o junit_family=legacy tests
+ run: uv run pytest --cov=sec_certs -m "not remote" --cov-report=xml --cov-report=term --junitxml=junit.xml -o junit_family=legacy tests
- name: Test summary
if: always()
uses: test-summary/action@v2