Skip to content

Commit

Permalink
Add github action for unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimjaved12 committed Jan 15, 2024
1 parent 91868f5 commit 1f1cddb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Python Unittest CI

on: [push, pull_request]


jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9.6"
cache: "poetry"

- name: Set up Poetry Path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Install dependencies
run: poetry install --no-interaction

- name: Run unittests
run: poetry run python -m unittest discover -s tests

0 comments on commit 1f1cddb

Please sign in to comment.