ci: run pytest in CI
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
name: Pytest
|
||||
on: [push, pull_request]
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
ruff:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Concurrency Group
|
||||
env:
|
||||
GROUP: ${{ github.workflow }}-${{ github.ref }}
|
||||
run: echo "$GROUP"
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user