From f882f4076d37053358d91bb00fcd6e31d61dfa53 Mon Sep 17 00:00:00 2001 From: Jan-Benedikt Jagusch Date: Thu, 28 Sep 2023 14:13:12 +0200 Subject: [PATCH 1/3] Pin pydantic<2. --- environment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/environment.yml b/environment.yml index f38f529..689cfca 100644 --- a/environment.yml +++ b/environment.yml @@ -22,5 +22,6 @@ dependencies: - fire - requests - dacite + - pydantic<2 - pip: - git+https://github.com/jupyter-server/jupyter_releaser.git@v2 From 717918b4b15e731e33817aee83f4f6a1ba9c7224 Mon Sep 17 00:00:00 2001 From: Jan-Benedikt Jagusch Date: Thu, 28 Sep 2023 14:39:57 +0200 Subject: [PATCH 2/3] Use micromamba for pre-commit in CI. --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec6aa99..1394e2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,10 +55,18 @@ jobs: name: Run pre-commit timeout-minutes: 15 runs-on: ubuntu-latest + env: + PRE_COMMIT_USE_MICROMAMBA: 1 steps: - name: Checkout branch - uses: actions/checkout@v3.3.0 - - name: Install Python 3.11 + uses: actions/checkout@v4.1.0 + with: + ref: ${{ github.head_ref }} + - name: Set up micromamba + uses: mamba-org/setup-micromamba@2b72821d5ad7f6da3c003a3684ce341bf187b46f + - 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.11 From f38d16f2a76ab519efc37ebd754180a4ddaa44cb Mon Sep 17 00:00:00 2001 From: Jan-Benedikt Jagusch Date: Thu, 28 Sep 2023 14:45:49 +0200 Subject: [PATCH 3/3] Rename step. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1394e2c..d6989b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,7 @@ jobs: uses: mamba-org/setup-micromamba@2b72821d5ad7f6da3c003a3684ce341bf187b46f - name: Add micromamba to GITHUB_PATH run: echo "${HOME}/micromamba-bin" >> "$GITHUB_PATH" - - name: Install Python 3.10 + - name: Install Python uses: actions/setup-python@v4 with: python-version: 3.11