aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/cron.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/cron.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/cron.yml')
-rw-r--r--.github/workflows/cron.yml21
1 files changed, 8 insertions, 13 deletions
diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml
index 3ca22f49..0ef4a551 100644
--- a/.github/workflows/cron.yml
+++ b/.github/workflows/cron.yml
@@ -17,22 +17,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
- uses: actions/setup-python@v5
+ - name: Install uv and Python
+ uses: astral-sh/setup-uv@v7
with:
- python-version: "3.10"
- cache: "pip"
- cache-dependency-path: |
- requirements/test_requirements.txt
- - name: Install python dependencies
- run: |
- pip install -r requirements/test_requirements.txt
+ python-version: ${{ matrix.python-version }}
+ 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 "remote" --junitxml=junit.xml -o junit_family=legacy tests
+ run: uv run pytest --cov=sec_certs -m "remote" --cov-report=xml --cov-report=term --junitxml=junit.xml -o junit_family=legacy tests
continue-on-error: true
- name: Test summary
if: always()
@@ -48,4 +43,4 @@ jobs:
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
- token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file
+ token: ${{ secrets.CODECOV_TOKEN }}