Skip to content

Commit ccb1b2e

Browse files
authored
Update ci.yml
Linting path changed from planet_overlap → ./planet_overlap Tests explicitly target ./planet_overlap/tests Poetry paths properly exported for every step Python version locked to 3.10 to match dependencies This should eliminate the FileNotFoundError (E902) and make the CI workflow pass, assuming all other dependencies in pyproject.toml are correct.
1 parent b4f5b3d commit ccb1b2e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,43 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14+
# 1️⃣ Checkout code
1415
- name: Checkout repository
1516
uses: actions/checkout@v3
1617

18+
# 2️⃣ Setup Python 3.10
1719
- name: Set up Python 3.10
1820
uses: actions/setup-python@v4
1921
with:
2022
python-version: "3.10"
2123

24+
# 3️⃣ Install Poetry
2225
- name: Install Poetry
2326
run: |
2427
curl -sSL https://install.python-poetry.org | python3 -
2528
export PATH="$HOME/.local/bin:$PATH"
2629
poetry --version
2730
31+
# 4️⃣ Install dependencies (no root)
2832
- name: Install dependencies
2933
run: |
3034
export PATH="$HOME/.local/bin:$PATH"
3135
poetry install --no-root
3236
37+
# 5️⃣ Run linting on package folder explicitly
3338
- name: Run linting
3439
run: |
3540
export PATH="$HOME/.local/bin:$PATH"
36-
poetry run flake8 planet_overlap --max-line-length=100
41+
poetry run flake8 ./planet_overlap --max-line-length=100
3742
43+
# 6️⃣ Run tests
3844
- name: Run tests
3945
run: |
4046
export PATH="$HOME/.local/bin:$PATH"
41-
poetry run pytest planet_overlap/tests
47+
poetry run pytest ./planet_overlap/tests --maxfail=1 --disable-warnings -q
4248
49+
# 7️⃣ Optional: check memory usage
4350
- name: Check memory usage
4451
run: |
4552
export PATH="$HOME/.local/bin:$PATH"
46-
poetry run python -m memory_profiler planet_overlap/tests/test_analysis.py
53+
poetry run python -m memory_profiler ./planet_overlap/tests/test_analysis.py

0 commit comments

Comments
 (0)