From bff0a922a863125830614844e4d7c8745a7f89fb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 4 Apr 2026 16:28:41 +0000 Subject: [PATCH 1/3] Initial plan From 46ad611d98b4115d33049aef63056af9f7c5227b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 4 Apr 2026 16:31:28 +0000 Subject: [PATCH 2/3] Fix Python version and restore GitHub Actions workflow Agent-Logs-Url: https://github.com/anziaayush/Lane-detection-in-Python-/sessions/fbc6ff1d-d173-40b3-8227-5039b3e8cadd Co-authored-by: anziaayush <187642893+anziaayush@users.noreply.github.com> --- .github/workflows/python-package-conda.yml | 34 ++++++++++++++++++++++ Requirements.txt | 2 -- environment.yml | 3 +- 3 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/python-package-conda.yml diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml new file mode 100644 index 0000000..f358604 --- /dev/null +++ b/.github/workflows/python-package-conda.yml @@ -0,0 +1,34 @@ +name: Python Package using Conda + +on: [push] + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: '3.10' + - name: Add conda to system path + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + conda env update --file environment.yml --name base + - name: Lint with flake8 + run: | + conda install flake8 + # 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: | + conda install pytest + pytest diff --git a/Requirements.txt b/Requirements.txt index be7f271..b96544b 100644 --- a/Requirements.txt +++ b/Requirements.txt @@ -1,4 +1,2 @@ -3. requirements.txt - opencv-python numpy diff --git a/environment.yml b/environment.yml index d5c84c1..b5b79ef 100644 --- a/environment.yml +++ b/environment.yml @@ -1,6 +1,7 @@ name: carnd dependencies: - - python==3.6.9 + - python=3.10 + - pip - numpy - matplotlib - jupyter From a093e27f4c2835623c0e1eb84b00377ba3de975c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 4 Apr 2026 16:32:04 +0000 Subject: [PATCH 3/3] Add explicit permissions to workflow for security Agent-Logs-Url: https://github.com/anziaayush/Lane-detection-in-Python-/sessions/fbc6ff1d-d173-40b3-8227-5039b3e8cadd Co-authored-by: anziaayush <187642893+anziaayush@users.noreply.github.com> --- .github/workflows/python-package-conda.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index f358604..00c1a51 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -5,6 +5,8 @@ on: [push] jobs: build-linux: runs-on: ubuntu-latest + permissions: + contents: read strategy: max-parallel: 5