diff options
author | Aarni Koskela <akx@iki.fi> | 2023-01-11 10:42:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 10:42:08 +0200 |
commit | 61097845764f5a6afc2251172168e1b1732b290f (patch) | |
tree | 4fe79ad51cd414a022644c94013c770576a0206f /.github | |
parent | 338bfa13c39df0837dd45cf492eb24d8d214ba96 (diff) | |
download | babel-61097845764f5a6afc2251172168e1b1732b290f.tar.gz |
Enable pre-commit (#943)
* Update pre-commit config syntax
* CI: run pre-commit
* CI: set up pip caching
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f9a7bee..1e89861 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,11 @@ on: - '*-maint' jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pre-commit/action@v3.0.0 test: runs-on: ${{ matrix.os }} strategy: @@ -27,9 +32,11 @@ jobs: path: cldr key: cldr-${{ hashFiles('scripts/*cldr*') }} - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + cache: "pip" + cache-dependency-path: "**/setup.py" - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel |