From 25347ec4ca7ce22c0652f71a51fc6e89353f9362 Mon Sep 17 00:00:00 2001 From: Pablo Moreno Date: Sun, 24 Mar 2024 20:53:24 +0100 Subject: [PATCH] feat: Create runtests.yml --- .github/workflows/runtests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/runtests.yml diff --git a/.github/workflows/runtests.yml b/.github/workflows/runtests.yml new file mode 100644 index 0000000..3b73d92 --- /dev/null +++ b/.github/workflows/runtests.yml @@ -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