mirror of
https://github.com/khornberg/octokit.py
synced 2026-05-18 20:09:06 +03:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
on: pull_request
|
|
name: Test
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
max-parallel: 3
|
|
matrix:
|
|
python-version: [3.6, 3.7, 3.8]
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Curl
|
|
env:
|
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
run: |
|
|
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
chmod +x ./cc-test-reporter && ./cc-test-reporter before-build
|
|
- name: Requirements ${{ matrix.python-version }}
|
|
run: |
|
|
pip install tox
|
|
- name: Test ${{ matrix.python-version }}
|
|
run: |
|
|
tox -e py3 -v
|
|
- name: Docs
|
|
run: |
|
|
tox -e docs -v
|
|
- name: Lint
|
|
run: |
|
|
tox -e check -v
|
|
- name: Report
|
|
env:
|
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
run: |
|
|
./cc-test-reporter after-build --coverage-input-type coverage.py
|