-
-
Notifications
You must be signed in to change notification settings - Fork 23
43 lines (40 loc) · 1.11 KB
/
test.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
name: Run tests
on:
push:
branches:
- main
- '*.x'
# Run weekly on Monday at 1:23 UTC
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
setup.cfg
- name: Install and update Python dependencies (binary only)
if: ${{ ! contains( matrix.python-version, 'dev' ) }}
run: |
python -m pip install --only-binary ':all:' --upgrade pip setuptools wheel build
python -m pip install --only-binary ':all:' --upgrade check-manifest pytest-cov pytest-json-report
- name: Try building with Python build
run: |
python -m build
shasum -a 256 dist/*
- name: Check manifest
run: check-manifest
- name: pytest
env:
COLUMNS: 120
run: |
pytest --color=yes -raXxs