Merge pull request #78 from pytest-dev/release-0.5 #49
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: Test | |
on: | |
push: | |
branches: | |
- main | |
- "test-me-*" | |
pull_request: | |
branches: | |
- "*" | |
env: | |
FORCE_COLOR: 1 | |
# Cancel running jobs for the same workflow and branch. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build and Check Package | |
uses: hynek/[email protected] | |
test: | |
needs: [package] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# Python >= 3.13 will fail with `ModuleNotFoundError: No module named 'lib2to3'` | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest, macos-latest] # , windows-latest] # Windows tests will fail. | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download Package | |
uses: actions/download-artifact@v4 | |
with: | |
name: Packages | |
path: dist | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tox | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade tox | |
- name: Test | |
shell: bash | |
run: | | |
tox run -e py --installpkg `find dist/*.tar.gz` |