Skip to content

CI fixes

CI fixes #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs: {}
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
runs-on: ubuntu-22.04
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-22.04
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.12"
- 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/download-artifact@v3.0.0
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