aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/tests.yml
diff options
context:
space:
mode:
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