-
Notifications
You must be signed in to change notification settings - Fork 19
44 lines (42 loc) · 997 Bytes
/
test.yaml
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
name: test
on:
pull_request: {}
push:
branches:
- "*"
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
# FIXME Temporarily disabled macOS as tox hangs on it for some unknown
# reason, even though it works fine locally:
# - macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: |
3.8
3.9
3.10
3.11
pypy3.10
- uses: install-pinned/tox@9977353bc5a21c2a433f7ff4419a1d6ef036b4ba
- run: |
set -e
if [[ "$RUNNER_DEBUG" = "1" ]]; then
debug_options="--verbose"
fi
tox --exit-and-dump-after 60 $debug_options
shell: bash
env:
GITHUB_TOKEN: ${{ github.token }}
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: AlexanderMelde/yapf-action@master