Files
rp/.gitea/workflows/test.yml
T
retoor 3d7bb39504
Tests / test (push) Failing after 25s
maintenance: update project version to 1.39.0
maintenance: use venv for test execution
docs: update changelog with release notes
2025-11-08 03:29:21 +01:00

35 lines
797 B
YAML

name: Tests
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
test:
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
runs-on: ubuntu-latest
steps:
- name: Create virtual environment
run: |
python -m venv venv
. venv/bin/activate
- name: Install dependencies
run: |
venv/bin/python3 -m pip install --upgrade pip
venv/bin/python3 -m pip install -e ".[dev]"
- name: Run tests with pytest
run: |
venv/bin/pytest --cov=pr --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false