forked from faebryk/faebryk
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1021 Bytes
/
pytest.yml
File metadata and controls
32 lines (30 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Run pytest
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
#cache: 'poetry'
- name: Install dependencies
run: |
python -m pip install poetry --upgrade pip
poetry install --with dev
- name: Lint with Ruff
run: poetry run ruff check --output-format=github .
#continue-on-error: true
- name: Run pytest
run: poetry run pytest
#- name: Upload pytest test results
# uses: actions/upload-artifact@v4
# with:
# name: pytest-results-${{ matrix.python-version }}
# path: junit/test-results-${{ matrix.python-version }}.xml
# # Use always() to always run this step to publish test results when there are test failures
# if: ${{ always() }}