5391b8518f
Bumps [paambaati/codeclimate-action](https://github.com/paambaati/codeclimate-action) from 5.0.0 to 6.0.0. - [Release notes](https://github.com/paambaati/codeclimate-action/releases) - [Changelog](https://github.com/paambaati/codeclimate-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/paambaati/codeclimate-action/compare/v5.0.0...v6.0.0) --- updated-dependencies: - dependency-name: paambaati/codeclimate-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
---
|
|
name: CI
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
env:
|
|
DEFAULT_PYTHON: '3.12'
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install tox tox-gh-actions
|
|
|
|
- name: Test with tox
|
|
run: tox
|
|
if: ${{ matrix.python-version != env.DEFAULT_PYTHON }}
|
|
|
|
- name: Test with tox (and upload coverage)
|
|
uses: paambaati/codeclimate-action@v6.0.0
|
|
if: ${{ matrix.python-version == env.DEFAULT_PYTHON }}
|
|
env:
|
|
CC_TEST_REPORTER_ID: 2a411f596959fc32f5d73f3ba7cef8cc4d5733299d742dbfc97fd6c190b9010c
|
|
with:
|
|
coverageCommand: tox
|
|
coverageLocations: |
|
|
${{ github.workspace }}/.tox/reports/*/coverage.xml:coverage.py
|
|
prefix: ${{ github.workspace }}/.tox/py39/lib/python3.9/site-packages
|
|
|
|
- uses: codecov/codecov-action@v4
|
|
with:
|
|
directory: '.tox/reports'
|