Skip to content

CI fixes

CI fixes #6

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@v4
with:
name: coverage-data
path: ".coverage.*"
include-hidden-files: true
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@v4
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