Skip to content

Commit 17d99cc

Browse files
committed
chore: Add linting and testing on CI
1 parent c85e1b0 commit 17d99cc

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

.devcontainer/docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ services:
1313

1414
rabbitmq:
1515
image: rabbitmq:management
16-
mem_limit: 512m
16+
mem_limit: 1024m
1717
mem_reservation: 128m
18-
cpus: 0.5
18+
cpus: 1
1919
# Prevent huge memory usage by limiting the number
2020
# of file descriptors
2121
ulimits:

.github/workflows/ci.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,35 @@ env:
1212
POETRY_VIRTUALENVS_CREATE: false
1313

1414
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python-version: ["3.8", "3.9", "3.10"]
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Install poetry
24+
run: pip install poetry
25+
26+
- uses: actions/setup-python@v4
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
cache: "pip"
30+
cache-dependency-path: "poetry.lock"
31+
32+
- name: Install dependencies
33+
run: poetry install
34+
35+
- name: Lint
36+
run: make lint
37+
38+
- name: Run docker-compose stack for testing
39+
run: make docker-up
40+
41+
- name: Test
42+
run: make test
43+
1544
test-build-docs:
1645
runs-on: ubuntu-latest
1746
steps:
@@ -21,8 +50,8 @@ jobs:
2150
- uses: actions/setup-python@v3
2251
with:
2352
python-version: 3.x
24-
cache: 'pip'
25-
cache-dependency-path: 'poetry.lock'
53+
cache: "pip"
54+
cache-dependency-path: "poetry.lock"
2655
- name: Install dependencies
2756
run: poetry install
2857
- run: mkdocs build --verbose --clean --strict

0 commit comments

Comments
 (0)