diff options
Diffstat (limited to '.github/workflows/cron.yml')
| -rw-r--r-- | .github/workflows/cron.yml | 21 |
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 }} |
