-
Notifications
You must be signed in to change notification settings - Fork 21
61 lines (52 loc) · 1.7 KB
/
lint_and_test.yaml
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
name: Lint and test
on:
workflow_dispatch:
push:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout ⬇️
uses: actions/checkout@master
with:
persist-credentials: false
submodules: recursive
- name: Setup python 🐍
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies ☕️
run: |
pip install -U pip
pip install -r requirements_dev.txt
- name: Lint 🔍
run: |
flake8 cmsdb scripts
test:
runs-on: ubuntu-latest
steps:
- name: Checkout ⬇️
uses: actions/checkout@master
with:
persist-credentials: false
submodules: recursive
- name: Setup python 🐍
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies ☕️
run: |
pip install -U pip
pip install -r requirements_dev.txt
- name: Test 🚦
run: |
python -c "from cmsdb.campaigns.run2_2016_nano_v9 import *"
python -c "from cmsdb.campaigns.run2_2017_nano_v9 import *"
python -c "from cmsdb.campaigns.run2_2018_nano_v9 import *"
python -c "from cmsdb.campaigns.run2_2017_nano_uhh_v11 import *"
python -c "from cmsdb.campaigns.run2_2018_nano_uhh_v11 import *"
python -c "from cmsdb.campaigns.run2_2017_JMEnano_v9 import *"
python -c "from cmsdb.campaigns.run2_2018_JMEnano_v9 import *"
python -c "from cmsdb.campaigns.run3_2022_preEE_nano_v11 import *"
python -c "from cmsdb.campaigns.run3_2022_postEE_nano_v11 import *"