Skip to content

Commit

Permalink
feat: Create runtests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-moreno authored Mar 24, 2024
1 parent 863d4dc commit 25347ec
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/runtests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI
on: [push]

jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup dependencies
run: pip install -r requirements.test.txt
- name: Run tests
env:
DJANGO_SETTINGS_MODULE: config.settings.develop
run: pytest --cov && coverage xml
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v4.0.1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: pablo-moreno/django-template

0 comments on commit 25347ec

Please sign in to comment.