Skip to content

Commit

Permalink
added a GitHub action to run unit tests automatically on code push
Browse files Browse the repository at this point in the history
  • Loading branch information
yiro02 committed Sep 10, 2024
1 parent 6bcb41b commit f9d4900
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/unittests.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Continuous Integration
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.0
architecture: x64
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run Tests
run: python -m pytest
name: Unit Tests
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: app
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: "poetry"
- run: poetry install
- name: Run tests
run: |
make mypy
make test

0 comments on commit f9d4900

Please sign in to comment.