Add assertion message handling in pytest cover command #444
Workflow file for this run
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: Check | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- crosshair/** | |
- setup.py | |
- .pre-commit-config.yaml | |
pull_request: | |
paths: | |
- crosshair/** | |
- setup.py | |
- .pre-commit-config.yaml | |
jobs: | |
Execute: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
python-version: [ | |
"3.7", | |
"3.8", | |
"3.9", | |
"3.10", | |
"3.11", | |
] | |
# Windows doesn't pass the test suite at the moment :( | |
# include: | |
# - os: windows-2016 | |
# python_version: "3.8.9" | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@main | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
# Vanilla install and smoke test, just to make sure we do | |
# not accidentally add an import for a [dev] dependency: | |
pip3 install -e . | |
crosshair -h | |
# Now add the dev dependencies, so we can use them for testing. | |
pip3 install -e .[dev] | |
- name: Run checks | |
run: | | |
pre-commit run --all-files --hook-stage manual |