Skip to content

Commit

Permalink
[FIX] checkout bact external packages before test
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSchnizer committed Jul 10, 2024
1 parent 9d51620 commit 5d59007
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]


steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -25,12 +26,20 @@ jobs:
cache-dependency-path: |
**/pyproject.toml
**/requirements*.txt
- name: Checkout bact-device-models
uses: actions/checkout@v4
with:
repository: hz-b/bact-device-models
path: bact-device-models

- name: Install bact dependencies bact-device-models
run: |
t_dir=bact-device-models
if [ -f $t_dir/requirements.txt ]; then pip install -r $t_dir/requirements.txt; fi
# make it a path, otherwise it searches pypi repo
pip install $t_dir/
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
Expand All @@ -47,6 +56,7 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# - name: Test with pytest
# run: |
# pytest

0 comments on commit 5d59007

Please sign in to comment.