Added automatic tests to github workflows

This commit is contained in:
Kristofers Solo 2023-03-27 09:19:44 +03:00
parent f67f8d2b69
commit f3e4cb2652
2 changed files with 2 additions and 25 deletions

View File

@ -1,23 +0,0 @@
name: Lint
on:
- push
- pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Lint with tox
run: tox

View File

@ -18,6 +18,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install django
pip install tox tox-gh-actions
- name: Lint with tox
run: python manage.py test
run: tox