Skip to content

Commit

Permalink
Add unit test to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeoLacruz committed Dec 30, 2024
1 parent e95dcbd commit ea86224
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,25 @@ jobs:
run: |
flake8 . --ignore=E501,W503
unit-tests-python:
name: "🧪 Unit tests: python"
# if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
needs: style-python
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Run tests
run: |
python -m unittest discover -s inventree_supplier_sync
publish:
if: github.event_name == 'release' && github.event.action == 'published'
needs: [style-python]
Expand Down

0 comments on commit ea86224

Please sign in to comment.