diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 8dd1596..e3ca5eb 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -1,4 +1,4 @@ -name: Lint GitHub Actions workflows +name: Lint on: pull_request: diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml new file mode 100644 index 0000000..4ea63f0 --- /dev/null +++ b/.github/workflows/assign.yml @@ -0,0 +1,23 @@ +name: Manage PR Assignee + +on: + pull_request: + types: + - opened + +permissions: + pull-requests: write + repository-projects: read + +jobs: + assign: + runs-on: ubuntu-latest + + if: endsWith(github.actor, '[bot]') == false && github.event.pull_request.assignee == null + + steps: + - name: Add assignees + run: gh pr edit ${{ github.event.number }} --add-assignee ${{ github.actor }} + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 81ff197..67379aa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,8 +45,7 @@ jobs: uses: ./.github/actions/setup-python-with-uv - name: Run pytest - run: | - uv run nox -s test -- --cov_report xml --junitxml junit.xml + run: uv run nox -s test -- --cov_report xml --junitxml junit.xml - name: Upload test results to Codecov uses: codecov/test-results-action@v1 diff --git a/codecov.yaml b/codecov.yaml index 1678b54..95c74e4 100644 --- a/codecov.yaml +++ b/codecov.yaml @@ -10,15 +10,15 @@ component_management: - component_id: config name: config paths: - - tools/config/**/*.py + - tools/config/** - component_id: logger name: logger paths: - - tools/logger/**/*.py + - tools/logger/** - component_id: tracer name: tracer paths: - - tools/tracer/**/*.py + - tools/tracer/** coverage: precision: 2