Pass user context only, not whole job #31
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 | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "!*" | |
pull_request: | |
branches: | |
- '*' | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
run_tests: | |
name: Run tests (Python ${{ matrix.python-version }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10', '3.11', '3.12'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Tox | |
run: pip install tox | |
- name: Run tests with tox | |
run: tox |