Run tox on project's CI

This commit is contained in:
Karolina Surma
2023-06-02 15:10:47 +02:00
parent b0d5969da6
commit 900dfc1a6d
+9 -12
View File
@@ -3,18 +3,15 @@ on:
push:
pull_request:
jobs:
test:
unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- name: Run Tox tests
id: test
uses: fedora-python/tox-github-action@main
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install -r requirements.txt
python -m pip install pytest pytest-regressions betamax
- name: Run pytest
run: |
python -m pytest -vv
tox_env: ${{ matrix.tox_env }}
strategy:
matrix:
tox_env: [py39, py310, py311, py312-dev]