Run tests and lint #42
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: Run tests and lint | |
on: [push, pull_request] | |
jobs: | |
tox: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- python-version: 3.7 | |
toxenv: py37-core | |
- python-version: 3.7 | |
toxenv: py37-integration | |
- python-version: 3.8 | |
toxenv: py38-core | |
- python-version: 3.8 | |
toxenv: lint | |
- python-version: 3.8 | |
toxenv: py38-integration | |
- python-version: 3.9 | |
toxenv: py39-core | |
- python-version: 3.9 | |
toxenv: py39-integration | |
- python-version: "3.10" | |
toxenv: py310-core | |
- python-version: "3.10" | |
toxenv: py310-integration | |
# - python-version: "3.11" | |
# toxenv: py311-core | |
# - python-version: "3.11" | |
# toxenv: py311-integration | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
python -m pip install --upgrade pip==23.1.2 wheel==0.40.0 setuptools==68.0.0 | |
pip install -e .[dev] --use-deprecated=legacy-resolver | |
# TODO enable again after the protobuf version conflict between pretix and web3.py is resolved | |
#- name: Pip Check | |
# run: pip check | |
- name: ${{ matrix.toxenv }} | |
run: tox | |
env: | |
WEB3_PROVIDER_URI: ${{ secrets.WEB3_PROVIDER_URI }} | |
TOXENV: ${{ matrix.toxenv }} |