-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (52 loc) · 1.39 KB
/
anms-core.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
name: Test anms-core
on:
push:
paths:
- .github/workflows/anms-core.yaml
- deps/**
- anms-core/**
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip3 install deps/anms-ace
pip3 install deps/anms-camp
- name: Install
working-directory: anms-core
run: pip3 install -e '.[test]'
- name: Run test
working-directory: anms-core
run: PYTHONPATH=src python3 -m pytest --junit-xml=testresults.xml --cov=anms test
flake8:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip3 install deps/anms-ace
pip3 install deps/anms-camp
- name: Install flake8
working-directory: anms-core
run: pip3 install -e '.[flake8]'
- name: Run flake8
working-directory: anms-core
run: |
FAIL_SRC=0
flake8 src || FAIL_SRC=$?