-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (42 loc) · 1.22 KB
/
python-app.yml
File metadata and controls
49 lines (42 loc) · 1.22 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
name: Linting and tests
on:
push:
branches: [master, mom/dev]
pull_request:
branches: [master, mom/dev]
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.13]
steps:
- name: Install ldap dependencies
run: sudo apt-get update && sudo apt-get install libldap2-dev libsasl2-dev
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
mypy --non-interactive --install-types
- name: Lint with pylint
run: |
pylint app.py config.env.py eac
- name: Typecheck with mypy
run: |
mypy app.py config.env.py eac
- name: Format with yapf
run: |
yapf --diff -r app.py config.env.py eac
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Build Image
run: |
docker build . --file Dockerfile