Skip to content

Merge pull request #159 from hartwork/dependabot/pip/pytest-8.2.1 #474

Merge pull request #159 from hartwork/dependabot/pip/pytest-8.2.1

Merge pull request #159 from hartwork/dependabot/pip/pytest-8.2.1 #474

Workflow file for this run

# Copyright (C) 2020 Sebastian Pipping <[email protected]>
# 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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Run the test suite
run: |
set -x
python3 --version
pip3 install -U setuptools # for Python >=3.12
python3 setup.py test
# Once again with pytest for its warnings
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