forked from ctypesgen/ctypesgen
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.02 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
44
45
46
47
48
name: Test
on:
- workflow_dispatch
# - push
# - pull_request
# - fork
jobs:
setup-and-test:
name: Python-${{ matrix.python }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
# Linux
- os: ubuntu-latest
python: 3.7
- os: ubuntu-latest
python: 3.8
- os: ubuntu-latest
python: 3.9
- os: ubuntu-latest
python: '3.10'
# macOS
- os: macos-latest
python: '3.10'
# Windows
- os: windows-latest
python: '3.10'
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run Test
run: |
pytest -v --showlocals tests/testsuite.py