-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 836 Bytes
/
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
name: Testing
on:
push:
pull_request:
jobs:
testing:
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- "3.10"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
# - uses: pre-commit/action@v3.0.0
- name: Install dependencies
run: pip install ".[dev]"
- name: Run tests
run: |
xonsh -c "xontrib load pygitstatus"
bash -c "set -o pipefail && pytest --collect-only --quiet | grep -v 'tests collected' | xargs --max-procs=1 --max-args=1 sh -c 'pytest $0 || exit 255'"