-
Notifications
You must be signed in to change notification settings - Fork 49
57 lines (50 loc) · 1.33 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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.8",
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
]
# 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 setuptools
# 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 --show-diff-on-failure