Skip to content

Commit

Permalink
task: inline the venv activate and the command
Browse files Browse the repository at this point in the history
The following syntax for the `cmds` fields doesn't work as expected and the
first line triggers a failure. The venv envvars are never properly initialized.

```
- >
  source "${VIRTUAL_ENV}/bin/activate" &&
  yarn run test-e2e
```
  • Loading branch information
goneri committed Dec 6, 2023
1 parent 9495be7 commit b7f55ea
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,27 +148,21 @@ tasks:
deps:
- package
cmds:
- >
source "${VIRTUAL_ENV}/bin/activate" &&
yarn run test-e2e
- source "${VIRTUAL_ENV}/bin/activate" && yarn run test-e2e
interactive: true
test-ui:
desc: Run UI tests
deps:
- package
cmds:
- >
source "${VIRTUAL_ENV}/bin/activate" &&
yarn run test-ui-current
- source "${VIRTUAL_ENV}/bin/activate" && yarn run test-ui-current
interactive: true
test-ui-old:
desc: Run UI tests (oldest vscode)
deps:
- package
cmds:
- >
source "${VIRTUAL_ENV}/bin/activate" &&
yarn run test-ui-oldest
- source "${VIRTUAL_ENV}/bin/activate" && yarn run test-ui-oldest
interactive: true
package:
vars:
Expand Down

0 comments on commit b7f55ea

Please sign in to comment.