Skip to content

Using pylint

Using pylint #196

Workflow file for this run

name: Pytest
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Runs every tuesday at 07:00 UTC
- cron: "0 7 * * 2"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: py${{ matrix.python-version }} @ ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# versions updated accoring to
# https://devguide.python.org/versions/
# on 2023-07-12
- python-version: "3.8"
os: "ubuntu-20.04"
- python-version: "3.8"
os: "ubuntu-22.04"
- python-version: "3.9"
os: "ubuntu-22.04"
- python-version: "3.10"
os: "ubuntu-22.04"
- python-version: "3.11"
os: "ubuntu-22.04"
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.python-version }}
cancel-in-progress: true
steps:
- uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Berlin"
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: |
pip install --upgrade pip
pip install setuptools_rust
- name: Install pytest
run: pip install pytest pytest-md pytest-emoji pytest-cov
- name: Install package
run: pip install .
- uses: pavelzw/pytest-action@v2
with:
custom-arguments: "--cov=src/ros_license_toolkit"
emoji: true
verbose: true
job-summary: true
# - uses: orgoro/coverage@v3
# with:
# coverageFile: "coverage.xml"
# token: ${{ secrets.GITHUB_TOKEN }}
# if: github.event_name == 'pull_request'
# - uses: MishaKav/pytest-coverage-comment@main
# with:
# pytest-xml-coverage-path: "coverage.xml"