From 4303ccf3dee449a11a9b890313bcf0c64e9f497f Mon Sep 17 00:00:00 2001 From: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> Date: Sat, 6 Apr 2024 01:13:42 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Codecov=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Codecov.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .github/workflows/Codecov.yml diff --git a/.github/workflows/Codecov.yml b/.github/workflows/Codecov.yml new file mode 100644 index 00000000..51e0a5ce --- /dev/null +++ b/.github/workflows/Codecov.yml @@ -0,0 +1,5 @@ +- name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: Johnserf-Seed/f2 \ No newline at end of file From 8ace704b05b42db18963ac53fb7ddadf5b7984a9 Mon Sep 17 00:00:00 2001 From: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> Date: Sat, 6 Apr 2024 01:20:38 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Codecov.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Codecov.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Codecov.yml b/.github/workflows/Codecov.yml index 51e0a5ce..d5245120 100644 --- a/.github/workflows/Codecov.yml +++ b/.github/workflows/Codecov.yml @@ -1,5 +1,5 @@ - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 with: - token: ${{ secrets.CODECOV_TOKEN }} - slug: Johnserf-Seed/f2 \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }} + slug: Johnserf-Seed/f2 \ No newline at end of file From 43b8380edef1f718eaa5237f620ce12284f27666 Mon Sep 17 00:00:00 2001 From: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> Date: Sat, 6 Apr 2024 01:27:20 +0800 Subject: [PATCH 3/9] add Codecov on deploy.yml Signed-off-by: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> --- .github/workflows/deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 15b74d8f..c6399b59 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -54,6 +54,13 @@ jobs: with: path: docs/.vitepress/dist + # Add this step to upload coverage reports to Codecov + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: Johnserf-Seed/f2 + # Deployment job deploy: environment: From 8584cb4933e87c4f593b3f19706ce222120e7cf6 Mon Sep 17 00:00:00 2001 From: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> Date: Sat, 6 Apr 2024 01:27:38 +0800 Subject: [PATCH 4/9] Delete .github/workflows/Codecov.yml Signed-off-by: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> --- .github/workflows/Codecov.yml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .github/workflows/Codecov.yml diff --git a/.github/workflows/Codecov.yml b/.github/workflows/Codecov.yml deleted file mode 100644 index d5245120..00000000 --- a/.github/workflows/Codecov.yml +++ /dev/null @@ -1,5 +0,0 @@ -- name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4.0.1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - slug: Johnserf-Seed/f2 \ No newline at end of file From 4cf36b7c03047d0c6e3771cbd08b1c7b3c59aa2d Mon Sep 17 00:00:00 2001 From: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> Date: Sun, 7 Apr 2024 18:54:00 +0800 Subject: [PATCH 5/9] Create Codecov.yml Signed-off-by: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> --- .github/workflows/Codecov.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/Codecov.yml diff --git a/.github/workflows/Codecov.yml b/.github/workflows/Codecov.yml new file mode 100644 index 00000000..62f605ff --- /dev/null +++ b/.github/workflows/Codecov.yml @@ -0,0 +1,35 @@ +name: Workflow for Codecov f2 +on: [push, pull_request] +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install dependencies + run: | + pip install pytest + pip install pytest-cov + pip install f2 + + - name: Run ATS + uses: codecov/codecov-ats@v0 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + - name: Run tests and collect coverage + run: pytest --cov=./ --cov-report=xml + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: Johnserf-Seed/f2 + verbose: true From 8e3e30650682c26bc72c61fe3ae8baa969eeaa21 Mon Sep 17 00:00:00 2001 From: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> Date: Sun, 7 Apr 2024 18:54:17 +0800 Subject: [PATCH 6/9] Update deploy.yml Signed-off-by: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> --- .github/workflows/deploy.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c6399b59..15b74d8f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -54,13 +54,6 @@ jobs: with: path: docs/.vitepress/dist - # Add this step to upload coverage reports to Codecov - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4.0.1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - slug: Johnserf-Seed/f2 - # Deployment job deploy: environment: From c8ea7a12b1dd0e20ce2cbd6709636e724ef87e1b Mon Sep 17 00:00:00 2001 From: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> Date: Sun, 7 Apr 2024 19:05:54 +0800 Subject: [PATCH 7/9] Update Codecov.yml Signed-off-by: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> --- .github/workflows/Codecov.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/Codecov.yml b/.github/workflows/Codecov.yml index 62f605ff..0454866e 100644 --- a/.github/workflows/Codecov.yml +++ b/.github/workflows/Codecov.yml @@ -19,11 +19,6 @@ jobs: pip install pytest-cov pip install f2 - - name: Run ATS - uses: codecov/codecov-ats@v0 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - name: Run tests and collect coverage run: pytest --cov=./ --cov-report=xml From b8409651e4af816804a7b77708948339fb0619c4 Mon Sep 17 00:00:00 2001 From: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> Date: Sun, 7 Apr 2024 19:08:36 +0800 Subject: [PATCH 8/9] Update Codecov.yml Signed-off-by: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> --- .github/workflows/Codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Codecov.yml b/.github/workflows/Codecov.yml index 0454866e..4df78135 100644 --- a/.github/workflows/Codecov.yml +++ b/.github/workflows/Codecov.yml @@ -17,7 +17,7 @@ jobs: run: | pip install pytest pip install pytest-cov - pip install f2 + pip install -e . - name: Run tests and collect coverage run: pytest --cov=./ --cov-report=xml From 4ccd45e3c93d7ba17448d7064110f82e59d54ff2 Mon Sep 17 00:00:00 2001 From: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> Date: Sun, 7 Apr 2024 20:26:04 +0800 Subject: [PATCH 9/9] Update Run ATS Codecov.yml Signed-off-by: JohnserfSeed <40727745+Johnserf-Seed@users.noreply.github.com> --- .github/workflows/Codecov.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Codecov.yml b/.github/workflows/Codecov.yml index 4df78135..28690aa4 100644 --- a/.github/workflows/Codecov.yml +++ b/.github/workflows/Codecov.yml @@ -22,9 +22,16 @@ jobs: - name: Run tests and collect coverage run: pytest --cov=./ --cov-report=xml + - name: Run ATS + uses: codecov/codecov-ats@v0 + env: + CODECOV_STATIC_TOKEN: ${{ secrets.CODECOV_STATIC_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 with: - token: ${{ secrets.CODECOV_TOKEN }} slug: Johnserf-Seed/f2 verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}