-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (54 loc) · 1.4 KB
/
python2-3-app.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: DB12 testing
on: [pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
if: github.event_name != 'push'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure
pytest:
runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.repository == 'DIRACGrid/db12'
strategy:
matrix:
python:
- 2.7.18
- 3.6.15
- 3.9.17
- 3.11.4
container: python:${{ matrix.python }}-slim
steps:
- uses: actions/checkout@v4
- name: Installing dependencies
run: |
apt update && apt install -y git
python -m pip install pytest mock
pip install -e .
- name: Run pytest
run: pytest
pylint:
runs-on: ubuntu-20.04
if: github.event_name != 'push' || github.repository == 'DIRACGrid/db12'
timeout-minutes: 10
strategy:
matrix:
python:
- 2.7.18
- 3.6.15
- 3.9.17
- 3.11.4
container: python:${{ matrix.python }}-slim
steps:
- uses: actions/checkout@v4
- name: Installing dependencies
run: |
python -m pip install pylint pytest mock
- name: Run pylint
run: pylint -E src/db12 tests