Skip to content

tools/ci.sh: Allow CI tests to run locally.#1104

Open
tsukasa-au wants to merge 1 commit intomicropython:masterfrom
tsukasa-au:run-ci-outside-github
Open

tools/ci.sh: Allow CI tests to run locally.#1104
tsukasa-au wants to merge 1 commit intomicropython:masterfrom
tsukasa-au:run-ci-outside-github

Conversation

@tsukasa-au
Copy link
Copy Markdown

When working on code in this repo, it can be beneficial to run the same tests that run as part of the CI workflow on GitHub.

This change makes it possible to run tools/ci.sh without it messing with your user-wide micropython install (~/.micropython/lib). It now defaults to creating a virtual environment in /tmp/micropython-venv.

Expected usage of this is:

# Setup tests (run once)
$ source tools/ci.sh
$ ci_package_tests_setup_micropython
# Run tests (run many times)
$ ci_package_tests_setup_lib && ci_package_tests_run || echo 'Failed'

When working on code in this repo, it can be beneficial to run the same
tests that run as part of the CI workflow on GitHub.

This change makes it possible to run `tools/ci.sh` without it messing
with your user-wide micropython install (`~/.micropython/lib`). It now
defaults to creating a virtual environment in `/tmp/micropython-venv`.

Expected usage of this is:
```bash
# Setup tests (run once)
$ source tools/ci.sh
$ ci_package_tests_setup_micropython
# Run tests (run many times)
$ ci_package_tests_setup_lib && ci_package_tests_run || echo 'Failed'
```

Signed-off-by: Greg Darke <micropython@me.tsukasa.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant