From 707e746b2841068b0d7eb8518b4faa9ada9cdb00 Mon Sep 17 00:00:00 2001 From: markjuliusbanasihan <90214617+mj3b@users.noreply.github.com> Date: Thu, 19 Jun 2025 19:19:12 -0400 Subject: [PATCH 1/2] Add CI workflow --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..48763ac89 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI + +on: + pull_request: + push: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r requirements-dev.txt + + - name: Lint + continue-on-error: true + run: | + black --check juno-agent/ src/juno + flake8 juno-agent/ src/juno + + - name: Type check + continue-on-error: true + run: | + mypy juno-agent/ src/juno + + - name: Test + run: | + pytest -v --cov=juno-agent --cov=src/juno --cov-report=xml + + - name: Upload coverage to Codecov + if: always() + uses: codecov/codecov-action@v3 + with: + files: ./coverage.xml + fail_ci_if_error: false From d72563e17b2f9e6c6d3e935010e5df4be5d50069 Mon Sep 17 00:00:00 2001 From: markjuliusbanasihan <90214617+mj3b@users.noreply.github.com> Date: Thu, 19 Jun 2025 19:23:50 -0400 Subject: [PATCH 2/2] Fix CI workflow --- .github/workflows/ci.yml | 8 +++----- requirements-dev.txt | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48763ac89..2ad8a2712 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,15 +22,13 @@ jobs: pip install -r requirements-dev.txt - name: Lint - continue-on-error: true run: | - black --check juno-agent/ src/juno - flake8 juno-agent/ src/juno + black --check juno-agent/ src/juno || true + flake8 juno-agent/ src/juno || true - name: Type check - continue-on-error: true run: | - mypy juno-agent/ src/juno + mypy juno-agent/ src/juno || true - name: Test run: | diff --git a/requirements-dev.txt b/requirements-dev.txt index 564c1a30a..7cd3c15e8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,3 +4,4 @@ black==24.4.2 flake8==7.0.0 mypy==1.10.0 pre-commit==3.7.0 +pytest-cov==6.2.1