Skip to content

Commit 727b36b

Browse files
committed
Add github actions
1 parent e3657b8 commit 727b36b

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

.github/workflows/docker-build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Docker
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- mom/dev
8+
9+
# Run tests for any PRs.
10+
pull_request:
11+
branches:
12+
- master
13+
- mom/dev
14+
15+
env:
16+
IMAGE_NAME: eac
17+
18+
jobs:
19+
test:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v5
24+
25+
- name: Run tests
26+
run: |
27+
docker build . --file Dockerfile

.github/workflows/python-app.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python application
5+
6+
on:
7+
push:
8+
branches: [master, mom/dev]
9+
pull_request:
10+
branches: [master, mom/dev]
11+
12+
jobs:
13+
check:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
python-version: [3.13]
19+
20+
steps:
21+
- name: Install ldap dependencies
22+
run: sudo apt-get update && sudo apt-get install libldap2-dev libsasl2-dev
23+
- uses: actions/checkout@v5
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v6
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
cache: 'pip'
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33+
mypy --non-interactive --install-types
34+
- name: Lint with pylint
35+
run: |
36+
pylint app.py config.env.py eac
37+
- name: Typecheck with mypy
38+
run: |
39+
mypy app.py config.env.py eac
40+
- name: Format with yapf
41+
run: |
42+
yapf --diff -r app.py config.env.py eac

0 commit comments

Comments
 (0)