Skip to content

Commit

Permalink
ci: add pytest in the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
avivace committed Nov 18, 2024
1 parent aab9db7 commit bdbc584
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run unit tests

on:
push:
branches:
- main

jobs:
test:
name: Run unit tests
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.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install .[dev]
- name: Run Pytest
run: |
python pytest tests/ -s --junitxml=path

0 comments on commit bdbc584

Please sign in to comment.