Skip to content

Commit

Permalink
Pin pydantic<2 and use Micromamba for pre-commit in CI (#41)
Browse files Browse the repository at this point in the history
* Pin pydantic<2.

* Use micromamba for pre-commit in CI.

* Rename step.
  • Loading branch information
janjagusch authored Sep 28, 2023
1 parent 131af4d commit c6d387c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- name: Install Python 3.11
uses: actions/[email protected]
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
uses: actions/setup-python@v4
with:
python-version: 3.11
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ dependencies:
- fire
- requests
- dacite
- pydantic<2
- pip:
- git+https://github.com/jupyter-server/jupyter_releaser.git@v2

0 comments on commit c6d387c

Please sign in to comment.