Merge pull request #171 from hartwork/python3-shebang #508
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 v2 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.12] # no particular need for in-between versions | |
runs-on: [macos-12, ubuntu-22.04] | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run the test suite | |
run: | | |
set -x | |
python3 --version | |
pip3 install -U setuptools # for Python >=3.12 | |
pip3 install --require-hashes -r requirements.txt | |
pytest -v -s -Wdefault -Werror | |
- name: Smoke test the CLI | |
run: | | |
set -x | |
pip3 install -e . | |
resolve-march-native --gcc=gcc-11 --vertical |