19 lines
520 B
YAML
19 lines
520 B
YAML
name: Pytest
|
|
on: push
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
pytest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
cache: "pip"
|
|
- name: Install dependencies
|
|
run: pip install -r requirements.txt
|
|
- name: Test with pytest
|
|
run: pytest ./test --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
|