Skip to content

Refactor pre-commit using composite action. #96

Refactor pre-commit using composite action.

Refactor pre-commit using composite action. #96

Workflow file for this run

on:
pull_request:
branches: [main, master]
push:
branches: [main, master]
name: test-coverage
jobs:
test-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Run pytest
run: |
pip install pytest pytest-cov
pip install -r requirements.txt
pytest --cov=./ --cov-report=xml
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
- name: Upload artifact
if: failure()
uses: actions/upload-artifact@v3
with:
name: coverage-results
path: ./coverage.xml