Skip to content

chore(deps): update actions/setup-python action to v4 #66

chore(deps): update actions/setup-python action to v4

chore(deps): update actions/setup-python action to v4 #66

Workflow file for this run

name: PR Checks
on:
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pipenv wheel
pipenv install --dev
- name: Check formatting
run: pipenv run black --target-version=py310 .
- name: Run tests
run: |
pipenv run pytest
# TODO: enable after looking into linter gripes
# lint:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ["3.8", "3.9", "3.10"]
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install pylint
# - name: Analysing the code with pylint
# run: |
# pylint `ls -R|grep .py$|xargs`