Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: CI
2
3 on: [push, pull_request]
4
5 jobs:
6 Windows:
7 name: 'Windows (${{ matrix.python }})'
8 runs-on: 'windows-latest'
9 strategy:
10 fail-fast: false
11 matrix:
12 python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
13
14 steps:
15 - name: Checkout
16 uses: actions/checkout@v4
17 - name: Setup python
18 uses: actions/setup-python@v4
19 with:
20 python-version: ${{ matrix.python }}
21 allow-prereleases: true
22 cache: pip
23 cache-dependency-path: test-requirements.txt
24 - name: Run tests
25 run: ./ci.sh
26 shell: bash
27 env:
28 # Should match 'name:' up above
29 JOB_NAME: 'Windows (${{ matrix.python }})'
30
31 Ubuntu:
32 name: 'Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})'
33 timeout-minutes: 10
34 runs-on: 'ubuntu-latest'
35 strategy:
36 fail-fast: false
37 matrix:
38 python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev']
39 check_formatting: ['0']
40 extra_name: ['']
41 include:
42 - python: '3.10'
43 check_formatting: '1'
44 extra_name: ', check formatting'
45 steps:
46 - name: Checkout
47 uses: actions/checkout@v4
48 - name: Setup python
49 uses: actions/setup-python@v4
50 if: "!endsWith(matrix.python, '-dev')"
51 with:
52 python-version: ${{ matrix.python }}
53 cache: pip
54 cache-dependency-path: test-requirements.txt
55 - name: Setup python (dev)
56 uses: deadsnakes/[email protected]
57 if: endsWith(matrix.python, '-dev')
58 with:
59 python-version: '${{ matrix.python }}'
60 - name: Run tests
61 run: ./ci.sh
62 env:
63 CHECK_FORMATTING: '${{ matrix.check_formatting }}'
64 # Should match 'name:' up above
65 JOB_NAME: 'Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})'
66
67 macOS:
68 name: 'macOS (${{ matrix.python }})'
69 timeout-minutes: 10
70 runs-on: 'macos-latest'
71 strategy:
72 fail-fast: false
73 matrix:
74 python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
75 steps:
76 - name: Checkout
77 uses: actions/checkout@v4
78 - name: Setup python
79 uses: actions/setup-python@v4
80 with:
81 python-version: ${{ matrix.python }}
82 allow-prereleases: true
83 cache: pip
84 cache-dependency-path: test-requirements.txt
85 - name: Run tests
86 run: ./ci.sh
87 env:
88 # Should match 'name:' up above
89 JOB_NAME: 'macOS (${{ matrix.python }})'