e3d2de9436
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 2.0.1. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v1...v2.0.1) --- updated-dependencies: - dependency-name: codecov/codecov-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>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Tests (tox)
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2.3.4
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2.2.2
|
|
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 != '3.9' }}
|
|
|
|
- name: Test with tox (and upload coverage)
|
|
uses: paambaati/codeclimate-action@v2.7.5
|
|
if: ${{ matrix.python-version == '3.9' }}
|
|
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@v2.0.1
|
|
with:
|
|
directory: '.tox/reports'
|