diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbcf202..04d390b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,19 +40,21 @@ jobs: uses: pavelzw/pytest-action@v2 pre-commit-checks: - name: pre-commit checks - timeout-minutes: 10 + name: "Linux - pre-commit checks - Python 3.10" + timeout-minutes: 30 runs-on: ubuntu-latest + env: + PRE_COMMIT_USE_MICROMAMBA: 1 steps: - name: Checkout branch - uses: actions/checkout@v3 - with: - ref: ${{ github.head_ref }} + uses: actions/checkout@v3.5.2 + - name: Set up micromamba + uses: mamba-org/setup-micromamba@875557da4ee020f18df03b8910a42203fbf02da1 + - name: Add micromamba to GITHUB_PATH + run: echo "${HOME}/micromamba-bin" >> "$GITHUB_PATH" - name: Install Python 3.10 uses: actions/setup-python@v4 with: python-version: "3.10" - name: Run pre-commit checks uses: pre-commit/action@v3.0.0 - env: - PRE_COMMIT_USE_MICROMAMBA: 1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 392b135..b922467 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,12 +16,12 @@ repos: - id: isort-conda additional_dependencies: [-c, conda-forge, toml=0.10.2] - repo: https://github.com/Quantco/pre-commit-mirrors-mypy - rev: 1.4.1 + rev: 1.5.1 hooks: - id: mypy-conda additional_dependencies: [-c, conda-forge, types-setuptools] - repo: https://github.com/Quantco/pre-commit-mirrors-pyupgrade - rev: 3.9.0 + rev: 3.10.1 hooks: - id: pyupgrade-conda args: