Skip to content

Commit

Permalink
ci: use Makefile to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Feb 17, 2025
1 parent a294d62 commit df02eab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,5 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python3 -m pip install '.[dev]' --find-links https://data.pyg.org/whl/torch-2.4.1%2Bcpu.html
- name: Test with pytest
run: |
python3 -m pytest -n auto
- name: Run tests
run: make
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
test: install-deps venv
. .venv/bin/activate && python -m pytest -n auto

install-deps: venv
. .venv/bin/activate && pip install '.[dev]'

venv:
test -d .venv || python3.10 -m venv .venv

.PHONY: test venv install-deps

0 comments on commit df02eab

Please sign in to comment.