Skip to content

fixup! Attempt to run linting on all branches #25

fixup! Attempt to run linting on all branches

fixup! Attempt to run linting on all branches #25

Workflow file for this run

name: Python CI
on:
push:
branches:
- '*'
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.7'
- '3.8'
- '3.9'
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
if [ -f requirements-lint.txt ]; then pip install -r requirements-lint.txt; fi
- name: Lint with pylint
run: |
pylint pylint_fixme_info
build:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
python-version:
- '3.9'
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
if [ -f requirements-build.txt ]; then pip install -r requirements-build.txt; fi
- name: Run build
run: |
make build
- name: Upload built artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.python-version }}-dist
path: dist/*