Update GitHub Actions configuration to match latest tox-gh-actions RE… (#354)

* Update GitHub Actions configuration to match latest tox-gh-actions README.

* Add gh-actions configuration to tox.ini.
This commit is contained in:
YPCrumble 2022-11-16 13:54:14 -05:00 committed by GitHub
parent 4e72638d76
commit 8b05c101a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View file

@ -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

View file

@ -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