-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 868 Bytes
/
ci.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
name: Python CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
CI: 'true' # Setting an environment variable 'CI' to 'true' - skip plot visualisation
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set up dependencies using venv_create.sh
run: |
cd prj/script
./venv_create.sh
cd ../..
- name: Run tests with pytest
run: ./prj/script/venv/bin/pytest test/
- name: Run type checking with mypy
run: ./prj/script/venv/bin/mypy --check-untyped-defs -p test -p src
#- name: Run linter with pylint
# run: ./prj/script/venv/bin/python -m pylint src