Merge pull request #4 from Josef-Friedrich/dependabot/pip/urllib3-1.2… #10
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
--- | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | |
name: Tests | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
workflow_dispatch: | |
jobs: | |
tests: | |
name: Python ${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11-dev'] | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- uses: actions/checkout@v3 | |
# https://github.com/marketplace/actions/setup-python | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel virtualenv tox tox-gh-actions | |
# https://github.com/ymyzk/tox-gh-actions | |
- name: Run tox targets for ${{ matrix.python-version }} | |
run: python -m tox |