Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
push:
branches: [ "Lawd-STAR/GetStream Vision-Agent" ]
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Branch names contain invalid characters or are incorrectly formatted.

Line 8 uses "Lawd-STAR/GetStream Vision-Agent" which contains spaces—git branch names cannot contain spaces per git-check-ref-format. Additionally, line 10 uses "Lawd-STSAR-patch-1q" which appears to have a typo (STSAR vs. STAR) and uses an unusual branch naming pattern.

Given the PR title "Update GitHub Actions branch references," these likely need correction to match actual branch names in your repository.

  on:
    push:
-     branches: [ "Lawd-STAR/GetStream Vision-Agent" ]
+     branches: [ "main" ]
    pull_request:
-     branches: [ "Lawd-STSAR-patch-1q" ]
+     branches: [ "main" ]

Please update these to match your actual branch names. If you intend to run this workflow on feature branches, use valid branch names without spaces (e.g., feature/my-feature or Lawd-STAR/vision-agent).

Also applies to: 10-10

🧰 Tools
🪛 actionlint (1.7.8)

8-8: character ' ' is invalid for branch and tag names. ref name cannot contain spaces, ~, ^, :, [, ?, *. see man git-check-ref-format for more details. note that regular expression is unavailable. note: filter pattern syntax is explained at https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet

(glob)

pull_request:
branches: [ "Lawd-STSAR-patch-1q" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
Loading