Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2 on: [push, pull_request, workflow_dispatch]
3 jobs:
4 tests:
5 name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
6 runs-on: "${{ matrix.os }}"
7 strategy:
8 matrix:
9 python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
10 os: ["ubuntu-latest", "macos-latest", "windows-latest"]
11 steps:
12 - uses: "actions/checkout@v3"
13 - name: "Cache for wikipedia flags"
14 uses: actions/cache@v3
15 env:
16 cache-name: "cache-wikipedia-flags"
17 with:
18 path: "tests/samples/wikipedia/flags"
19 key: "wikipedia-flags-${{ matrix.python-version }}-${{ matrix.os }}"
20 - name: "Cache for wikipedia symbols"
21 uses: actions/cache@v3
22 env:
23 cache-name: "cache-wikipedia-symbols"
24 with:
25 path: "tests/samples/wikipedia/symbols"
26 key: "wikipedia-symbols-${{ matrix.python-version }}-${{ matrix.os }}"
27 - name: "Cache for w3c svg12 tinytestsuite"
28 uses: actions/cache@v3
29 env:
30 cache-name: "cache-w3c-svg12-tinytestsuite"
31 with:
32 path: "tests/samples/W3C_SVG_12_TinyTestSuite"
33 key: "w3c-svg12-tinytestsuite-${{ matrix.python-version }}-${{ matrix.os }}"
34 - uses: "actions/setup-python@v4"
35 with:
36 python-version: "${{ matrix.python-version }}"
37 - name: "Install dependencies"
38 run: |
39 python -VV
40 python -m site
41 python -m pip install --upgrade pip setuptools wheel
42 python -m pip install --upgrade virtualenv tox tox-gh-actions
43 - name: "Run tox targets for ${{ matrix.python-version }}"
44 run: "python -m tox"