Add GitHub Actions workflow for Conda-based Python package - #20
Open
theCreator177 wants to merge 5 commits into
Open
Add GitHub Actions workflow for Conda-based Python package#20theCreator177 wants to merge 5 commits into
theCreator177 wants to merge 5 commits into
Conversation
Add GitHub Actions workflow for Python package with Conda
Author
|
Succuess |
Adds .cursor/environment.json and an idempotent .cursor/install.sh that provision the JARVIS/Friday dev environment on a Linux Cloud Agent: - Python venv + backend deps (requirements.txt) + pytest/pytest-asyncio - Playwright Chromium for web browsing/research actions - Frontend deps (npm ci) - Local TLS certs for the HTTPS backend + secure WebSocket Defines backend (8340) and frontend (5173) terminals and exposed ports. Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Anthony Martinez <theCreator177@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds CI automation intended to run Python linting/tests in a Conda-based environment, and also introduces editor/dev-environment helper files for Cursor plus a snapshot configuration file.
Changes:
- Add a GitHub Actions workflow to lint with flake8 and run pytest.
- Add a Cursor “environment” definition and an idempotent install script for setting up the repo on Ubuntu.
- Add a
.snapshots/config.jsonconfiguration file with include/exclude patterns.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
.github/workflows/python-package-conda.yml |
New CI workflow intended to set up a Conda-based Python environment and run lint/tests. |
.cursor/install.sh |
New repo setup script (venv, Playwright Chromium, frontend deps, TLS certs). |
.cursor/environment.json |
Cursor environment definition to run backend/frontend terminals and installation. |
.snapshots/config.json |
Snapshot tool configuration defining excluded/included file patterns. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+11
to
+34
| 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 |
Comment on lines
+20
to
+23
| if ! python3 -c "import ensurepip" >/dev/null 2>&1; then | ||
| sudo apt-get update -qq | ||
| sudo apt-get install -y -qq python3-venv | ||
| fi |
Comment on lines
+1
to
+5
| { | ||
| "name": "JARVIS / Friday Voice Assistant", | ||
| "user": "ubuntu", | ||
| "install": "bash .cursor/install.sh", | ||
| "terminals": [ |
Comment on lines
+118
to
+149
| "*.obj", | ||
| "*.lib", | ||
| "*.a", | ||
| "*.map", | ||
| ".npmrc" | ||
| ], | ||
| "default": { | ||
| "default_prompt": "Enter your prompt here", | ||
| "default_include_all_files": false, | ||
| "default_include_entire_project_structure": true | ||
| }, | ||
| "included_patterns": [ | ||
| "build.gradle", | ||
| "settings.gradle", | ||
| "gradle.properties", | ||
| "pom.xml", | ||
| "Makefile", | ||
| "CMakeLists.txt", | ||
| "package.json", | ||
| "requirements.txt", | ||
| "Pipfile", | ||
| "Gemfile", | ||
| "composer.json", | ||
| ".editorconfig", | ||
| ".eslintrc.json", | ||
| ".eslintrc.js", | ||
| ".prettierrc", | ||
| ".babelrc", | ||
| ".dockerignore", | ||
| ".gitattributes", | ||
| ".stylelintrc", | ||
| ".npmrc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.