Skip to content

patch codecov publishing #1513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@ on:
branches:
- main

permissions:
id-token: write
contents: read
pull-requests: write

env:
HATCH_VERSION: 1.9.1

jobs:
test-python:
runs-on: ubuntu-latest
runs-on:
group: databrickslabs-protected-runner-group
labels: linux-ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -46,10 +53,12 @@ jobs:
uses: codecov/codecov-action@v5
with:
codecov_yml_path: codecov.yml
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true

integration-python:
runs-on: ubuntu-latest
runs-on:
group: databrickslabs-protected-runner-group
labels: linux-ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -80,7 +89,9 @@ jobs:


fmt-python:
runs-on: ubuntu-latest
runs-on:
group: databrickslabs-protected-runner-group
labels: linux-ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -104,7 +115,9 @@ jobs:
git diff --exit-code

python-no-pylint-disable:
runs-on: ubuntu-latest
runs-on:
group: databrickslabs-protected-runner-group
labels: linux-ubuntu-latest
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize')
steps:
- name: Checkout
Expand All @@ -124,7 +137,9 @@ jobs:
fi

coverage-tests-with-make:
runs-on: ubuntu-latest
runs-on:
group: databrickslabs-protected-runner-group
labels: linux-ubuntu-latest
env:
INPUT_DIR_PARENT: .
OUTPUT_DIR: ./test-reports
Expand Down
12 changes: 11 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# We may add certain file to ignore in the codecov coverage report
ignore:
coverage:
status:
project:
default:
target: auto
threshold: 0.5%
patch:
default:
target: auto
threshold: 0.5%
ignore: