Skip to content

Commit

Permalink
Merge pull request #8 from sensein/dev
Browse files Browse the repository at this point in the history
distributed tests
  • Loading branch information
fabiocat93 authored Sep 18, 2024
2 parents bdb7e38 + b191fd0 commit 1605391
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/macos_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,5 @@ jobs:
poetry install --no-interaction --no-root
shell: bash
- name: Run unit tests
run: poetry run pytest
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: ./test-results
run: poetry run pytest -n auto
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_tests_310.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
poetry run nvidia-smi -L
poetry run nvidia-smi -q -d Memory
- name: Run unit tests
run: poetry run pytest
run: poetry run pytest -n auto
shell: bash
- name: Delete poetry env with python {{ matrix.python-version }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_tests_311.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
poetry run nvidia-smi -L
poetry run nvidia-smi -q -d Memory
- name: Run unit tests
run: poetry run pytest
run: poetry run pytest -n auto
shell: bash
- name: Delete poetry env with python {{ matrix.python-version }}
run: |
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
torch = "^2.4.1"
pytest = "^8.3.3"

pytest-xdist = {version = "^3.6.1", extras = ["psutil"]}

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 1605391

Please sign in to comment.