Skip to content

python-lint-test-multiple-versions #2

python-lint-test-multiple-versions

python-lint-test-multiple-versions #2

name: python-lint-test-multiple-versions
on:
workflow_run:
workflows: ["build-and-push"]
types:
- completed
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Lint with pylint
run: |
pylint --disable=C0114,C0116 poolini
- name: Test with pytest
run: |
pytest