ci: Copy GitHub to Gitea

This commit is contained in:
2024-07-22 00:09:09 +03:00
parent 22b3257e52
commit 43784396aa
2 changed files with 93 additions and 0 deletions

23
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,23 @@
name: Test and coverage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: pip install -r requirements.txt -r requirements.dev.txt
- name: Run tests and collect coverage
run: |
pytest --cov=src tests
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2