mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-03-16 21:30:24 +00:00
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:
parent
4e72638d76
commit
8b05c101a6
2 changed files with 13 additions and 3 deletions
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
8
tox.ini
8
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue