Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: ci
2
3 on:
4 workflow_dispatch:
5 push:
6 branches: [ master ]
7 pull_request:
8 branches: [ master ]
9
10 jobs:
11 build:
12
13 runs-on: ${{ matrix.os }}
14 defaults:
15 run:
16 shell: bash
17 env:
18 OS: ${{ matrix.os }}
19 PYTHON: ${{ matrix.python-version }}
20 PYTHONIOENCODING: utf-8
21 PIP_DOWNLOAD_CACHE: ${{ github.workspace }}/../.pip_download_cache
22 strategy:
23 fail-fast: false
24 matrix:
25 os: [ubuntu-20.04, macos-latest, windows-latest]
26 python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
27 steps:
28 - name: Set git crlf/eol
29 run: |
30 git config --global core.autocrlf false
31 git config --global core.eol lf
32
33 - uses: actions/checkout@v3
34 with:
35 fetch-depth: 0
36
37 - name: Set up Python ${{ matrix.python-version }}
38 uses: actions/setup-python@v4
39 with:
40 python-version: ${{ matrix.python-version }}
41
42 - name: Install dependencies
43 run: |
44 python -m pip install --upgrade pip
45 pip install tox tox-gh-actions
46
47 - name: Run full (internal) test suite
48 run: |
49 tox
50 env:
51 PLATFORM: ${{ matrix.os }}