Merge pull request #212 from hartwork/precommit-autoupdate #650
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
# Copyright (C) 2020 Sebastian Pipping <sebastian@pipping.org> | |
# Licensed under GPL v3 or later | |
name: Run the test suite | |
on: | |
- pull_request | |
- push | |
jobs: | |
run-tests: | |
name: Run the test suite | |
strategy: | |
matrix: | |
python-version: [3.9, 3.13] # no particular need for in-between versions | |
runs-on: [macos-latest, ubuntu-latest] | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run the test suite | |
run: | | |
set -x | |
python3 --version | |
pip3 install -U pip setuptools wheel | |
pip3 install ".[tests]" # for test dependencies | |
pip3 install -U pytest # for a test runner | |
exec pytest -v -Wdefault -Werror |