Skip to content

Commit

Permalink
test and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Nov 29, 2024
1 parent 118878d commit a4e17e5
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/coverage@main

- uses: cvxgrp/.github/actions/setup-environment-uv@main

- name: Set up Pytest
run: uv pip install --no-cache-dir \
pytest \
pytest-cov \
pytest-html \
pytest-random-order


- name: Test on Linux
shell: bash
run: |
uv run pytest --cov='cvx' --random-order --verbose \
--html=artifacts/tests/html-report/report.html \
--cov-report term \
--cov-report xml:artifacts/tests/coverage/coverage.xml \
--cov-report json:artifacts/tests/coverage/coverage.json \
--cov-report lcov:artifacts/tests/coverage/coverage.info \
--cov-report html:artifacts/tests/html-coverage \
tests/
# I want to upload the result to gh-pages, hence this file disturbs
rm -f artifacts/tests/html-coverage/.gitignore
# Uncomment once the package is public
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
with:
Expand Down

0 comments on commit a4e17e5

Please sign in to comment.