Bump pylint from 2.11.1 to 2.17.6 #199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
inputs: {} | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checking out repo | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install and upgrade dependencies | |
run: | | |
python -m pip install -U pip setuptools wheel | |
python3 -m pip install -U .[dev] | |
- name: Analysing the code with pylint | |
run: pylint singer | |
- name: Runs tests with coverage | |
run: coverage run --parallel -m pytest | |
- name: Upload coverage data | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-data | |
path: ".coverage.*" | |
coverage: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- name: Install and upgrade dependencies | |
run: | | |
python -m pip install -U pip setuptools wheel | |
python3 -m pip install -U .[dev] | |
- name: Download coverage data | |
uses: actions/[email protected] | |
with: | |
name: coverage-data | |
- name: Combine coverage data | |
run: | | |
coverage combine | |
- name: Generate XML coverage report | |
run: | | |
coverage xml | |
- name: Display human readable report | |
run: | | |
coverage report | |
# Optional if you want to use codecov.io | |
# - name: Upload coverage report | |
# uses: codecov/codecov-action@v3 |