mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v3...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
37 lines
870 B
YAML
37 lines
870 B
YAML
name: Code Coverage
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- devel
|
|
|
|
jobs:
|
|
test: # Defines a job called "test"
|
|
runs-on: ubuntu-latest # The job runs on the latest Ubuntu runner
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.10"
|
|
- name: Poetry
|
|
run: pip install poetry
|
|
|
|
- name: Install dependencies
|
|
run: poetry install
|
|
|
|
- name: Run tests with coverage
|
|
run: poetry run coverage run -m pytest
|
|
|
|
- name: Generate Coverage Report # Ensure creation of coverage.xml
|
|
run: poetry run coverage xml
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
token: ${{secrets.CODECOV_TOKEN}}
|
|
file: ./coverage.xml
|