-
Notifications
You must be signed in to change notification settings - Fork 47
48 lines (41 loc) · 1.14 KB
/
ci.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
name: Tests
on:
pull_request:
paths-ignore:
- "images/**"
- "*.md"
push:
branches:
- master
paths-ignore:
- "images/**"
- "*.md"
workflow_dispatch:
jobs:
Testing:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Set up PDM
uses: pdm-project/setup-pdm@main
with:
python-version: ${{ matrix.python-version }}
- name: Cache pypackages
uses: actions/cache@v2
with:
path: __pypackages__
key: pypackages-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('pdm.lock') }}
restore-keys: |
pypackages-${{ matrix.os }}-${{ matrix.python-version }}-
- name: Install dependencies
run: pdm install -v
# On Windows, interactive test doesn't work, so exclude it.
- name: Run tests
run: pdm run tox -v
- name: Interactive tests
if: runner.os != 'Windows'
run: pdm run tox -eextra -v