This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
Add deprecation warning #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Running unittests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
unittests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.6, 3.9] | |
django: ["2.2", "3.1"] | |
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 -r requirements_test.txt | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Linting | |
run: flake8 | |
- name: Run unittests | |
env: | |
TOX_ENV: py${{ matrix.python-version}}-django${{ matrix.django }} | |
run: | | |
tox -e $TOX_ENV | |
# integrationtests: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Set up Python 3.x | |
# uses: actions/setup-python@v2 | |
# with: | |
# python-version: '3.9' | |
# - name: Install dependencies | |
# run: | | |
# python -m pip install --upgrade pip | |
# pip install -r requirements_test.txt | |
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
# - name: Run integration tests | |
# env: | |
# TOX_ENV: py3.9-django3.1-cypress | |
# run: | | |
# tox -e $TOX_ENV |