23 lines
672 B
YAML
23 lines
672 B
YAML
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
|
|
|