Skip to content

Commit

Permalink
ci: use tox instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Mar 1, 2024
1 parent 1a1b9dc commit 48a257e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/maintests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
- name: Install any required packages
run: |
python -m pip install --upgrade pip
pip install --upgrade -r requirements.txt -r requirements.dev.txt
- name: Run no_extra_fields check
run: pytest tests
pip install --upgrade -r requirements.dev.txt
- name: Run no_extra_fields check # Enabled by HORDELIB_CI_ONGOING
run: tox -e tests

build:
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
- name: Install any required packages
run: |
python -m pip install --upgrade pip
pip install --upgrade -r requirements.txt -r requirements.dev.txt
- name: Run no_extra_fields check
run: pytest tests
pip install --upgrade -r requirements.dev.txt
- name: Run no_extra_fields check # Enabled by HORDELIB_CI_ONGOING
run: tox -e tests
build:
env:
AIWORKER_CACHE_HOME: ${{ github.workspace }}/.cache
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ commands = pre-commit run --all-files --show-diff-on-failure
[testenv:tests]
description = install pytest in a virtual environment and invoke it on the tests folder
skip_install = false
passenv = HORDELIB_CI_ONGOING
deps =
pytest>=7
pytest-sugar
Expand Down

0 comments on commit 48a257e

Please sign in to comment.