Skip to content

Commit

Permalink
🐛 🧑‍💻 Pin Mise in CICD
Browse files Browse the repository at this point in the history
* Overwrite the project `.mise.toml` in the Style Check workflow
* Pin Mise to `2024.11.19` in CICD
  • Loading branch information
rblaine95 committed Nov 21, 2024
1 parent e587130 commit a0a7bbb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/continuous-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ jobs:
- name: Set up Mise
uses: jdx/mise-action@v2
with:
version: 2024.11.19
cache: true
experimental: true # Required for mise tasks
install: true
Expand Down
23 changes: 14 additions & 9 deletions .github/workflows/style-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,25 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Overwrite .mise.toml # It's not needed in this workflow
run: |
cat <<EOF > .mise.toml
[tools]
"pipx:black" = "24.10"
"pipx:isort" = "5.13"
python = "3.12"
uv = "0.4"
[settings]
pipx_uvx = true
EOF
- name: Install dependencies
uses: jdx/mise-action@v2
with:
cache: true
experimental: true
mise_toml: |
[tools]
"pipx:black" = "24.10"
"pipx:isort" = "5.13"
python = "3.12"
uv = "0.4"
[settings]
pipx_uvx = true
install: true

- name: Check import style with isort
run: isort . --check --profile black --diff
Expand Down

0 comments on commit a0a7bbb

Please sign in to comment.