PR-checker - pylint improvements (#25) #13
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: Installation test | |
on: | |
push: | |
paths: | |
- 'requirements.txt' | |
- 'pytest.ini' | |
- '.github/workflows/installation-test.yml' | |
workflow_dispatch: | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: e2e-'${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
python-install: | |
strategy: | |
matrix: | |
os: ["ubuntu-20.04", "ubuntu-22.04"] | |
python-ver: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
exclude: | |
- os: ubuntu-22.04 | |
python-ver: 3.6 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
# Use the branch specified by the workflow_dispatch input or the pull_request event | |
ref: ${{ github.event.inputs.branch || github.event.pull_request.head.ref }} | |
- name: Install Python ${{ matrix.python-ver}} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-ver}} | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Installation steps on ${{ matrix.os }} w ${{ matrix.python-ver}} | |
run: | | |
pip install --upgrade pip | |
pip install --upgrade cython | |
pip install -U -r requirements.txt | |
- name: Run collect only | |
run: pytest --collect-only |