Skip to content

Merge branches 'main' and 'main' of github.com:youtype/awscliv2 #30

Merge branches 'main' and 'main' of github.com:youtype/awscliv2

Merge branches 'main' and 'main' of github.com:youtype/awscliv2 #30

name: Send coverage report
on:
push:
branches:
- main
paths:
- awscliv2/**
- tests/**
workflow_dispatch: {}
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: uv sync --dev
- name: Build coverage report
run: |
uvx --with pytest-cov pytest --cov awscliv2 --cov-report=xml --junitxml=junit.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}