Commit c53853f5 authored by Hugo van Kemenade's avatar Hugo van Kemenade Committed by Zsolt Dollenstein
Browse files

CI: Add Python 3.8 and lint to GitHub Actions (#1173)

* CI: Test Python 3.8 on GitHub Actions

* pre-commit autoupdate

* CI: Lint on GitHub Actions
parent fa116354
Loading
Loading
Loading
Loading
+27 −0
Changes for .github/workflows/lint.yml: 27 added lines, 0 removed lines.
Original line number Diff line number Diff line
name: Lint

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.7]

    steps:
      - uses: actions/checkout@v1

      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v1
        with:
          python-version: ${{ matrix.python-version }}

      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          python -m pip install --upgrade pre-commit
          python -m pip install -e '.[d]'

      - name: Lint
        run: pre-commit run --all-files
+1 −1
Changes for .github/workflows/test.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ jobs:
    strategy:
      fail-fast: false
      matrix:
        python-version: [3.6, 3.7]
        python-version: [3.6, 3.7, 3.8]
        os: [ubuntu-latest, macOS-latest, windows-latest]

    steps:
+2 −2
Changes for .pre-commit-config.yaml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ repos:
        types: [python]

  - repo: https://gitlab.com/pycqa/flake8
    rev: 3.7.8
    rev: 3.7.9
    hooks:
      - id: flake8
        additional_dependencies: [flake8-bugbear]
@@ -24,7 +24,7 @@ repos:
        exclude: ^docs/conf.py

  - repo: https://github.com/prettier/prettier
    rev: 1.18.2
    rev: 1.19.1
    hooks:
      - id: prettier
        args: [--prose-wrap=always, --print-width=88]