From cd96edbabb459d3412920ddfc3f2378a623463ea Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 22 Oct 2024 15:42:15 -0500 Subject: [PATCH 1/6] fix: try the thig --- .github/workflows/ci.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e42465a..3af3266b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,8 +6,20 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - fetch-depth: 0 + - name: Checkout codecov-cli test branch + uses: actions/checkout@v4 + with: + repository: codecov/codecov-cli + ref: 1c261cd6b9bbef57bba3595c8688c388ce69ac5d + submodules: 'true' + + - name: Run pip install . + run: | + pip install -r requirements.txt + pip install . + + - name: Checkout + uses: actions/checkout@v4 - name: Set up Python 3.10 uses: actions/setup-python@v4 with: @@ -15,10 +27,5 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt - name: Run tests and collect coverage - run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }} - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 - with: - verbose: true - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + run: pytest --cov app + From da1b3fcfea8310c1a250c594bea29591ded469a7 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 22 Oct 2024 15:43:28 -0500 Subject: [PATCH 2/6] fix: yaml --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3af3266b..3f2975fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,6 @@ jobs: run: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - name: Checkout codecov-cli test branch uses: actions/checkout@v4 with: From f42020e6df76007ec9db52273f9ebd0e8159083f Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 22 Oct 2024 15:43:57 -0500 Subject: [PATCH 3/6] fix: spaces not tabs --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f2975fb..e7b4b117 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,17 +4,17 @@ jobs: run: runs-on: ubuntu-latest steps: - - name: Checkout codecov-cli test branch - uses: actions/checkout@v4 - with: - repository: codecov/codecov-cli - ref: 1c261cd6b9bbef57bba3595c8688c388ce69ac5d + - name: Checkout codecov-cli test branch + uses: actions/checkout@v4 + with: + repository: codecov/codecov-cli + ref: 1c261cd6b9bbef57bba3595c8688c388ce69ac5d submodules: 'true' - name: Run pip install . - run: | + run: | pip install -r requirements.txt - pip install . + pip install . - name: Checkout uses: actions/checkout@v4 From b522902654e7b3e05e29fc586177ff27623d230d Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 22 Oct 2024 15:46:17 -0500 Subject: [PATCH 4/6] fix: upload to Codecov --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7b4b117..449b7ae6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: uses: actions/checkout@v4 with: repository: codecov/codecov-cli - ref: 1c261cd6b9bbef57bba3595c8688c388ce69ac5d + ref: f7473ad88e1d1bac79cde59e3e4c2f9f54017499 submodules: 'true' - name: Run pip install . @@ -27,3 +27,8 @@ jobs: - name: Run tests and collect coverage run: pytest --cov app + - name: Upload to Codecov + run: | + codecovcli upload-process + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 86e31285668742cae4fa4eb2c5a341fbf2321bde Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 22 Oct 2024 15:49:03 -0500 Subject: [PATCH 5/6] fix: do the upload --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 449b7ae6..eea5d0ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,4 @@ jobs: - name: Upload to Codecov run: | - codecovcli upload-process - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + codecovcli -v upload-process From 3492b73dc93162dac9c914f645f7cf4a1fb1ebc3 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 22 Oct 2024 15:52:37 -0500 Subject: [PATCH 6/6] fix: update the ref --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eea5d0ad..3ab6bdc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: uses: actions/checkout@v4 with: repository: codecov/codecov-cli - ref: f7473ad88e1d1bac79cde59e3e4c2f9f54017499 + ref: bd84ee595d111c01e8967f3b382e8a66492fe127 submodules: 'true' - name: Run pip install .