-
Notifications
You must be signed in to change notification settings - Fork 1
ci: Migrate workflows to use Makefile targets and pyproject.toml deps. #233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5260b3a
e94460c
3f1d259
afaf73e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,3 @@ | ||||||||||||||
| # This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||||||||||||||
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||||||||||||||
|
|
||||||||||||||
| name: "🔎 Python Linter" | ||||||||||||||
|
|
||||||||||||||
| on: | ||||||||||||||
|
|
@@ -10,26 +7,22 @@ on: | |||||||||||||
| branches: ["main"] | ||||||||||||||
|
|
||||||||||||||
| jobs: | ||||||||||||||
| build: | ||||||||||||||
| lint: | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
| strategy: | ||||||||||||||
| fail-fast: false | ||||||||||||||
|
|
||||||||||||||
| steps: | ||||||||||||||
| - name: "⏳ Checkout repository" | ||||||||||||||
| uses: actions/checkout@v3 | ||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||
|
|
||||||||||||||
| - name: "🐍 Set up Python" | ||||||||||||||
| uses: actions/setup-python@v4 | ||||||||||||||
| uses: actions/setup-python@v5 | ||||||||||||||
| with: | ||||||||||||||
| cache: "pip" | ||||||||||||||
| cache-dependency-path: pyproject.toml | ||||||||||||||
| python-version: "3.10" | ||||||||||||||
|
|
||||||||||||||
| - name: "🛠 Install dependencies" | ||||||||||||||
| run: | | ||||||||||||||
| pip install -r .github/workflows/requirements.txt | ||||||||||||||
| ruff --version | ||||||||||||||
| pytest --version | ||||||||||||||
| run: python3 -m pip install -e ".[dev]" | ||||||||||||||
|
||||||||||||||
| run: python3 -m pip install -e ".[dev]" | |
| run: python3 -m pip install ruff |
Copilot
AI
Mar 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR removes pinned CI tool versions (ruff==…, pytest==…, pyyaml==…) and replaces them with unpinned ranges via extras. That can make CI results non-reproducible (sudden failures when a new ruff/pytest release lands). If stability is important, consider pinning these versions in pyproject.toml (or using a constraints/lock file that CI installs alongside the extras).
| run: python3 -m pip install -e ".[dev]" | |
| run: | | |
| python3 -m pip install -e ".[dev]" | |
| python3 -m pip install "ruff==0.5.0" "pytest==8.3.3" "pyyaml==6.0.2" |
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,25 +9,23 @@ on: | |||||||
| jobs: | ||||||||
| mock-tests: | ||||||||
| runs-on: ubuntu-latest | ||||||||
| strategy: | ||||||||
| fail-fast: false | ||||||||
|
|
||||||||
| steps: | ||||||||
| - name: "⏳ Checkout repository" | ||||||||
| uses: actions/checkout@v3 | ||||||||
| uses: actions/checkout@v4 | ||||||||
|
|
||||||||
| - name: "🐍 Set up Python" | ||||||||
| uses: actions/setup-python@v4 | ||||||||
| uses: actions/setup-python@v5 | ||||||||
| with: | ||||||||
| cache: "pip" | ||||||||
|
||||||||
| cache: "pip" | |
| cache: "pip" | |
| cache-dependency-path: pyproject.toml |
Copilot
AI
Mar 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pip install -e ".[dev,test]" requires the repo to be an installable Python project. In the current tree there is no setup.py/setup.cfg, and pyproject.toml lacks a [build-system] section, so this step is likely to fail on a clean CI runner. Consider either (a) adding a minimal [build-system] (e.g., setuptools backend) so editable installs work, or (b) switching CI to install the extras without editable mode using an approach that doesn't require building the project (e.g., a constraints/requirements export).
| run: python3 -m pip install -e ".[dev,test]" | |
| run: python3 -m pip install -r requirements-dev.txt |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
python3 -m pip install -e ".[dev]"causes the job to fail during dependency installation in this repository because setuptools cannot build editable metadata with the current layout (it errors with “Multiple top-level packages discovered in a flat-layout: ['lib', 'reports']”). This means lint/test commands never run; the same regression is also present in.github/workflows/tests.ymlwith-e ".[dev,test]".Useful? React with 👍 / 👎.