Skip to content

Commit f9d4900

Browse files
committed
added a GitHub action to run unit tests automatically on code push
1 parent 6bcb41b commit f9d4900

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

Diff for: .github/workflows/unittests.yaml

+19-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
name: Continuous Integration
2-
on: [push]
3-
jobs:
4-
build:
5-
runs-on: ubuntu-latest
6-
steps:
7-
- uses: actions/checkout@v2
8-
- name: Set up Python
9-
uses: actions/setup-python@v2
10-
with:
11-
python-version: 3.10.0
12-
architecture: x64
13-
- name: Install dependencies
14-
run: pip install -r requirements.txt
15-
- name: Run Tests
16-
run: python -m pytest
1+
name: Unit Tests
2+
runs-on: ubuntu-latest
3+
defaults:
4+
run:
5+
shell: bash
6+
working-directory: app
7+
steps:
8+
- uses: actions/checkout@v3
9+
- name: Install poetry
10+
run: pipx install poetry
11+
- uses: actions/setup-python@v3
12+
with:
13+
python-version: "3.10"
14+
cache: "poetry"
15+
- run: poetry install
16+
- name: Run tests
17+
run: |
18+
make mypy
19+
make test

0 commit comments

Comments
 (0)