From 8b05c101a657bd3af3e3c34b907568b56062195c Mon Sep 17 00:00:00 2001 From: YPCrumble Date: Wed, 16 Nov 2022 13:54:14 -0500 Subject: [PATCH] =?UTF-8?q?Update=20GitHub=20Actions=20configuration=20to?= =?UTF-8?q?=20match=20latest=20tox-gh-actions=20RE=E2=80=A6=20(#354)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update GitHub Actions configuration to match latest tox-gh-actions README. * Add gh-actions configuration to tox.ini. --- .github/workflows/test.yml | 8 +++++--- tox.ini | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a61dd35..37d6f0f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,14 +4,16 @@ --- name: Test the application using Tox. -on: [push, pull_request] +on: + - push + - pull_request jobs: build: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - name: apt update @@ -24,6 +26,6 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install tox tox-gh-actions + python -m pip install tox tox-gh-actions - name: Test with tox run: tox -v diff --git a/tox.ini b/tox.ini index ad91d92..755607b 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,14 @@ envlist = py{38,39,310}-django40 py{38,39,310,311}-django41 +[gh-actions] +python = + 3.7: py37 + 3.8: py38 + 3.9: py39 + 3.10: py310 + 3.11: py311 + [testenv] commands = coverage run --branch --source=notifications manage.py test