Skip to content

Commit

Permalink
Fix broken unit test workflows (#3231)
Browse files Browse the repository at this point in the history
* Fixing the unit test workflows
  • Loading branch information
jkppr authored Nov 27, 2024
1 parent 3724c20 commit 7c1b089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
run: |
pip install pipenv
pipenv install -d
pipenv install -r test_requirements.txt
pipenv run pip install -r test_requirements.txt
- name: Check pytest installation
run: pipenv run pip show pytest
- name: Run unit tests
run: |
pipenv run python run_tests.py
pipenv run python3 run_tests.py
# Frontend tests (VueJS)
VueJS:
Expand Down
5 changes: 1 addition & 4 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@


def run_python_tests():
subprocess.check_call(
"python3 -m pytest timesketch/ api_client/",
shell=True,
)
subprocess.check_call(["python3", "-m", "pytest", "timesketch/", "api_client/"])


def main():
Expand Down

0 comments on commit 7c1b089

Please sign in to comment.