📜 CI Develop Workflow (ci-develop.yml)
This GitHub Actions workflow is designed for a fast quality check during active development. It is triggered on every push or Pull Request targeting the develop branch. The workflow focuses on linting and type checking to ensure code quality early in the development cycle.
Trigger
- Event:
push to develop branch.
- Event:
pull_request to develop branch.
Jobs
1. lint
This job performs static code analysis (linting) and type checking.
- Runs on:
ubuntu-latest
- Steps:
- Checkout Code: Checks out the repository code.
- Set up Python: Configures Python 3.13 environment.
- Install Poetry: Installs the latest version of Poetry.
- Configure Poetry: Configures Poetry to create virtual environments in-project.
- Load cached venv: Attempts to restore a cached Poetry virtual environment to speed up dependency installation.
- Install dependencies: Installs project dependencies using Poetry if the cache is not hit.
- Run Ruff: Executes the
ruff linter to check for code style violations and potential errors.
- Run Mypy: Performs static type checking using
mypy.