Skip to content

New pullrequest - #5610

Open
maxmudyasin wants to merge 2 commits into
github:mainfrom
maxmudyasin:main
Open

maxmudyasin wants to merge 2 commits into
github:mainfrom
maxmudyasin:main

Conversation

@maxmudyasin

Copy link
Copy Markdown

Description

Testing

Set up this checkout's .venv and editable install using the local development guide. Run commands from the checkout root.

  • Tested locally with .venv/bin/specify --help (Windows PowerShell: .\.venv\Scripts\specify.exe --help)
  • Ran relevant existing tests with .venv/bin/python -m pytest tests -q (Windows PowerShell: .\.venv\Scripts\python.exe -m pytest tests -q); use affected test paths for focused checks and LC_ALL=en_US.UTF-8 on macOS
  • Tested with a sample project (if applicable)

AI Disclosure

  • I did not use AI assistance for this contribution
  • I did use AI assistance (fill in the disclosure below)

AI disclosure: N/A

This workflow installs Python dependencies, runs linting with flake8, and executes tests with pytest on push and pull request events to the main branch.
Add GitHub Actions workflow for Python application
@maxmudyasin
maxmudyasin requested a review from mnriem as a code owner November 29, 2026 00:11
Copilot AI adaptive review requested due to automatic review settings November 29, 2026 00:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The workflow has active critical and moderate issues: it uses an unsupported Python version, skips installing the package and test dependencies, and relies on mutable action tags that violate the repository’s SHA-pinning contract.

4 open issues
What changed in this PR

Adds a GitHub Actions workflow to lint and test the Python project on pushes and pull requests targeting main.

Changes:

  • Configures an Ubuntu runner with Python and read-only repository permissions.
  • Installs linting and test tools and optionally project requirements.
  • Runs Flake8 checks followed by the pytest suite.
File Description
.github/​workflows/​python-app.yml Adds a GitHub Actions workflow for Python environment setup, dependency installation, linting, and pytest execution.

Review effort: Lite (adaptive)

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Comment on lines +21 to +23
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
Comment on lines +22 to +25
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants