Skip to content

Commit 2edb001

Browse files
committed
ci: unittest
1 parent 2b9cf72 commit 2edb001

3 files changed

Lines changed: 8 additions & 97 deletions

File tree

.github/workflows/unitttest.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,11 @@ jobs:
1111
with:
1212
fetch-depth: 1
1313

14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v5
16+
1417
- name: Set up Python
15-
uses: actions/setup-python@v2
16-
with:
17-
python-version: "3.10.12" # Replace with the version you need
18+
run: uv sync
1819

19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install -r requirements.txt
2320
- name: Run Unit Tests
24-
run: |
25-
source ./env.sh
26-
python3 tests/test_ast.py
27-
python3 tests/test_polymorphism.py
28-
python3 tests/test_dependency.py
29-
python3 tests/test_rewrite.py
30-
python3 tests/test_alpha_equiv.py
21+
run: uv run pytest

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ dependencies = [
3232
"tree-sitter-haskell==0.21.0",
3333
"types-requests>=2.31.0",
3434
]
35+
[tool.pytest.ini_options]
36+
pythonpath = ["."]
37+

tests/test_rewrite.py

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)