Skip to content

Commit c65f597

Browse files
authored
Fix CI out of disk space (#170)
* don't install example dependencies in CI * excluded pyterrier.py and utils.py from type checking * fixed mypy working dir in CI
1 parent a0f4b2b commit c65f597

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ jobs:
626626
name: c-library-windows
627627
path: python/tirex_tracker/
628628
- name: 🧰 Install dependencies
629-
run: pip install -e python[tests,examples]
629+
run: pip install -e python[tests]
630630
- name: 🔍 Check Python code
631631
run: ruff check python
632632
python-typing:
@@ -670,9 +670,10 @@ jobs:
670670
name: c-library-windows
671671
path: python/tirex_tracker/
672672
- name: 🧰 Install dependencies
673-
run: pip install -e python[tests,examples]
673+
run: pip install -e python[tests]
674674
- name: 🔍 Check Python static typing
675-
run: mypy python
675+
working-directory: ${{github.workspace}}/python
676+
run: mypy .
676677
python-security:
677678
name: 🔍 Check Python code security
678679
strategy:
@@ -714,7 +715,7 @@ jobs:
714715
name: c-library-windows
715716
path: python/tirex_tracker/
716717
- name: 🧰 Install dependencies
717-
run: pip install -e python[tests,examples]
718+
run: pip install -e python[tests]
718719
- name: 🔍 Check Python code security
719720
run: bandit -c python/pyproject.toml -r python
720721
python-test:
@@ -765,7 +766,7 @@ jobs:
765766
name: c-library-windows
766767
path: python/tirex_tracker/
767768
- name: 🧰 Install dependencies
768-
run: pip install -e python[tests,examples]
769+
run: pip install -e python[tests]
769770
- name: 🧪 Test Python code
770771
run: pytest --cov --cov-report xml python
771772
- name: 📤 Upload coverage to Codecov

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ line-length = 120
8484
select = ["E", "F", "B", "SIM", "I"]
8585

8686
[tool.mypy]
87-
exclude = ["build", "venv", "resources"]
87+
exclude = ["build", "venv", "resources", "tirex_tracker/pyterrier.py", "tirex_tracker/utils.py"]
8888

8989
[tool.bandit]
9090
exclude_dirs = ["build", "venv", "resources"]

0 commit comments

Comments
 (0)