-
Notifications
You must be signed in to change notification settings - Fork 21
81 lines (59 loc) · 1.61 KB
/
Copy pathci.yml
File metadata and controls
81 lines (59 loc) · 1.61 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# SPDX-FileCopyrightText: 2020-2026 Sébastien Helleu <flashcode@flashtux.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: CI
on:
- push
- pull_request
jobs:
checks:
env:
POEXAM_VERSION: "0.0.12"
strategy:
matrix:
os:
- ubuntu-26.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- name: Install gettext
run: sudo apt-get install gettext
- name: Cache poexam
id: cache-poexam
uses: actions/cache@v6
with:
path: ~/.cargo/bin/poexam
key: poexam-${{ env.POEXAM_VERSION }}-${{ runner.os }}
- name: Install poexam
if: steps.cache-poexam.outputs.cache-hit != 'true'
run: cargo install --version "$POEXAM_VERSION" poexam
- name: Check gettext files
run: make gettext
build:
strategy:
matrix:
os:
- ubuntu-26.04
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
name: Python ${{ matrix.python-version }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install flake8 pylint pylint-django typing-extensions
- name: Lint with flake8
run: make flake8
- name: Lint with pylint
run: make pylint