Merge pull request #205 from facultyai/drop-support-old-python-versions #113
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: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: [3.8, 3.9, '3.10', 3.11] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Tox | |
run: pip install tox | |
- name: Run tests | |
run: tox -e py | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
linter: [flake8, black, license] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.11 | |
- name: Install Tox | |
run: pip install tox | |
- name: Run linter | |
run: tox -e ${{ matrix.linter }} |