Skip to content

Commit

Permalink
add github action for unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
KedoKudo committed Dec 4, 2024
1 parent 3ccd1cd commit 1a16aa3
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run Unittests

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.local/bin:$PATH"
poetry --version
- name: Install dependencies
run: |
export PATH="$HOME/.local/bin:$PATH"
poetry install
- name: Run tests with pytest
run: |
export PATH="$HOME/.local/bin:$PATH"
poetry run pytest tests

0 comments on commit 1a16aa3

Please sign in to comment.