From: Hugo van Kemenade Date: Fri, 22 Nov 2019 08:14:57 +0000 (+0200) Subject: CI: Add Python 3.8 and lint to GitHub Actions (#1173) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/c53853f5716f2b5100b17b8f8509e026dd7fa4e2?ds=inline 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 --- diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..58ce406 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,27 @@ +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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2d1ae0a..de734da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7fd8f55..8bcc1be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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]