Skip to content

Commit

Permalink
🐛 🧑‍💻 Fix Mise Tasks (#1192)
Browse files Browse the repository at this point in the history
* There's a small "bug" in Mise (jdx/mise#3071)
* This is a workaround for the "bug"
  • Loading branch information
rblaine95 authored Nov 20, 2024
1 parent de75164 commit af91a23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ jobs:
| cut -d' ' -f2 \
>> "$GITHUB_ENV"
- name: Install dependencies with Poetry
run: mise run poetry:install:all
run: mise run poetry:install
- name: Run Pylint
run: |
poetry run pylint app/ endorser/ shared/ trustregistry/ waypoint/ --rcfile=.pylintrc -r n --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" --exit-zero > pylintreport.txt
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:
| cut -d' ' -f2 \
>> "$GITHUB_ENV"
- name: Install dependencies with Poetry
run: mise run poetry:install:all
run: mise run poetry:install
- uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down
8 changes: 4 additions & 4 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ POETRY_VIRTUALENVS_CREATE = "false"
# Setup Python Virtual Environment
_.python.venv = { path = ".venv", create = true }

[tasks."poetry:install:all"]
[tasks."poetry:install"]
description = "Poetry Install dependencies for all submodules"
depends = ["poetry:install:*"]

[tasks."poetry:update:all"]
[tasks."poetry:update"]
description = "Poetry Update lockfiles for all submodules"
depends = ["poetry:update:*"]

Expand Down Expand Up @@ -77,7 +77,7 @@ rm -rf tilt/docker

[tasks.tests]
description = "Run all tests"
depends = ["poetry:install:all"]
depends = ["poetry:install"]
run = """
#!/bin/bash
cp .env.example .env
Expand All @@ -87,5 +87,5 @@ poetry run pytest . --ignore ./tilt

[tasks."tests:unit"]
description = "Run unit tests"
depends = ["poetry:install:all"]
depends = ["poetry:install"]
run = "poetry run pytest app --ignore=app/tests/e2e"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ mise run tilt:up
Install the requirements:

```bash
mise run poetry:install:all
mise run poetry:install
```

To run the tests you need to set up some environment variables to point Pytest
Expand Down

0 comments on commit af91a23

Please sign in to comment.