Skip to content

Commit b8b9fba

Browse files
author
Jianjie Liu
authored
Add test running instructions (#46)
Add test running instructions to documentations
1 parent 0192c9c commit b8b9fba

2 files changed

Lines changed: 29 additions & 17 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ Package Release
8585
-------------------
8686
Please see [RELEASE.md](https://github.com/microsoft/genalog/blob/main/RELEASE.md) for more details on the release process.
8787

88+
Development with the Repo
89+
--------------------------
90+
We use [tox](https://tox.readthedocs.io/en/latest/index.html) to orchestrate most of the CI procedure. This will ensure the maximum environment parity between local dev boxes and remote CI pipelines.
91+
92+
1. `git clone https://github.com/microsoft/genalog.git`
93+
2. `pip install tox`
94+
3. To run static analysis: `tox -e flake8`
95+
4. To run the test suites: `tox -e -- -m "not azure"`
8896

8997
Repo Structure
9098
-------------------

RELEASE.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
1-
# Toucan Release Procedure
1+
# Genalog Release Procedure
22

33
Checklist for the release process of `genalog`:
44

55
### Preparation
6-
- [x] Ensure `main` branch contains all relevant changes and PRs relating to the specific release is merged
7-
- [x] Create and switch to a new release branch (i.e. release-X.Y.Z)
6+
- [ ] Ensure `main` branch contains all relevant changes and PRs relating to the specific release is merged
7+
- [ ] Create and switch to a new release branch (i.e. release-X.Y.Z)
88

99
### Package Metadata Update
10-
- [x] Update VERSION.txt with version bump. Please reference [Semantic Versioning](https://semver.org/).
11-
- [x] Update [CHANGELOG.md](./CHANGELOG.md)
12-
- [x] Commit the above changes with title "Release vX.Y.Z"
13-
- [x] Generate a new git tag for the new version (e.g. `git tag -a v0.1.0 -m "Initial Release"`)
14-
- [x] Push the new tag to remote `git push origin v0.1.0`
15-
- [x] Create a new PR with the above changes into `main` branch.
10+
- [ ] Update VERSION.txt with version bump. Please reference [Semantic Versioning](https://semver.org/).
11+
- [ ] Update [CHANGELOG.md](./CHANGELOG.md)
12+
- [ ] Commit the above changes with title "Release vX.Y.Z"
13+
- [ ] Generate a new git tag for the new version (e.g. `git tag -a v0.1.0 -m "Initial Release"`)
14+
- [ ] Push the new tag to remote `git push origin v0.1.0`
15+
- [ ] Create a new PR with the above changes into `main` branch.
16+
17+
### Run the Full Test Suites
18+
- [ ] If you haven't, `pip install tox`
19+
- [ ] Run the test suites with `tox -e py -- -m "not azure"` (we will skip the azure related tests as they will be deprecated)
1620

1721
### Release to PyPI
18-
- [x] Manually trigger the [release pipeline](https://dev.azure.com/genalog-dev/genalog/_build?definitionId=2) in DevOps on the release branch, this will publish latest version of `genalog` to PyPI.
19-
- [x] Select `releaseType` to `Test` to test out the release in [TestPyPI](https://test.pypi.org/project/genalog/)
20-
- [x] Rerun and switch `releaseType` to production if looks good.
21-
- [x] If the pipeline ran successfully, check and publish the draft of this release on [Github Release](https://github.com/microsoft/genalog/releases)
22-
- [x] Latest version is pip-installable with:
22+
- [ ] Manually trigger the [release pipeline](https://dev.azure.com/genalog-dev/genalog/_build?definitionId=2) in DevOps on the release branch, this will publish latest version of `genalog` to PyPI.
23+
- [ ] Select `releaseType` to `Test` to test out the release in [TestPyPI](https://test.pypi.org/project/genalog/)
24+
- [ ] Rerun and switch `releaseType` to production if looks good.
25+
- [ ] If the pipeline ran successfully, check and publish the draft of this release on [Github Release](https://github.com/microsoft/genalog/releases)
26+
- [ ] Latest version is pip-installable with:
2327
- `pip install genalog`
2428

2529
### Update Documentation on Github Page
26-
- [x] Staying on the release branch, `cd docs && pip install -r requirements-doc.txt`
27-
- [x] Build the jupyter-book with `jupyter-book build --all genalog_docs`
28-
- [x] Preview the HTML files, if looks good [publish to Github Page](https://jupyterbook.org/start/publish.html#publish-your-book-online-with-github-pages): `ghp-import -n -p -f genalog_docs/_build/html`
30+
- [ ] Staying on the release branch, `cd docs && pip install -r requirements-doc.txt`
31+
- [ ] Build the jupyter-book with `jupyter-book build --all genalog_docs`
32+
- [ ] Preview the HTML files, if looks good [publish to Github Page](https://jupyterbook.org/start/publish.html#publish-your-book-online-with-github-pages): `ghp-import -n -p -f genalog_docs/_build/html`

0 commit comments

Comments
 (0)