-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
85 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Documentation | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
|
||
concurrency: | ||
group: ci-docs-${{ github.event_name }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniforge-version: latest | ||
environment-file: conda/dev.yaml | ||
channels: conda-forge,nodefaults | ||
activate-environment: growth-forge | ||
auto-update-conda: true | ||
conda-solver: libmamba | ||
python-version: "3.10" | ||
|
||
- name: Install deps | ||
run: | | ||
poetry config virtualenvs.create false | ||
poetry install | ||
- name: Generate documentation with changes from semantic-release | ||
run: makim --verbose docs.build | ||
|
||
- name: GitHub Pages action | ||
uses: peaceiris/[email protected] | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,34 +65,44 @@ If you are proposing a feature: | |
Ready to contribute? Here’s how to set up `growth-forge` for local development. | ||
|
||
1. Fork the `growth-forge` repo on GitHub. | ||
2. Clone your fork locally: | ||
|
||
2. Clone your fork locally:: | ||
|
||
$ git clone [email protected]:your_name_here/growth-forge.git | ||
```bash | ||
$ git clone [email protected]:your_name_here/growth-forge.git | ||
``` | ||
|
||
3. Install your local copy into a virtualenv. Assuming you have | ||
virtualenvwrapper installed, this is how you set up your fork for local | ||
development:: | ||
3. Install your local copy into a conda virtual environment: | ||
|
||
$ mkvirtualenv growth-forge $ cd growth-forge/ $ python setup.py develop | ||
```bash | ||
$ cd growth-forge/ # in the case you are not in the root of the project | ||
$ mamba env create --file conda/dev.yaml | ||
$ conda activate growth-forge | ||
$ poetry install | ||
``` | ||
|
||
4. Create a branch for local development:: | ||
4. Create a branch for local development: | ||
|
||
$ git checkout -b name-of-your-bugfix-or-feature | ||
```bash | ||
$ git checkout -b name-of-your-bugfix-or-feature | ||
``` | ||
|
||
Now you can make your changes locally. | ||
|
||
5. When you’re done making changes, check that your changes pass flake8 and the | ||
tests, including testing other Python versions with tox:: | ||
|
||
$ make lint $ make test | ||
5. When you’re done making changes, check that your changes pass the linter and | ||
the tests: | ||
|
||
To get flake8 and tox, just pip install them into your virtualenv. | ||
```bash | ||
$ makim tests.unit | ||
$ makim tests.linter | ||
``` | ||
|
||
6. Commit your changes and push your branch to GitHub:: | ||
6. Commit your changes and push your branch to GitHub: | ||
|
||
$ git add . $ git commit -m “Your detailed description of your changes.” $ | ||
git push origin name-of-your-bugfix-or-feature | ||
```bash | ||
$ git add . | ||
$ git commit -m "Your detailed description of your changes." | ||
$ git push origin name-of-your-bugfix-or-feature | ||
``` | ||
|
||
7. Submit a pull request through the GitHub website. | ||
|
||
|
@@ -106,14 +116,6 @@ Before you submit a pull request, check that it meets these guidelines: | |
the list in README.rst. | ||
3. The pull request should work for Python >= 3.8. | ||
|
||
## Tips | ||
|
||
To run a subset of tests:: | ||
|
||
``` | ||
$ pytest tests.test_feedback_linker | ||
``` | ||
|
||
## Release | ||
|
||
This project uses semantic-release in order to cut a new release based on the | ||
|
@@ -148,7 +150,7 @@ The table below shows which commit message gets you which release type when | |
| `fix(pencil): stop graphite breaking when pressure is applied` | Fix Release | | ||
| `feat(pencil): add 'graphiteWidth' option` | Feature Release | | ||
| `perf(pencil): remove graphiteWidth option` | Chore | | ||
| `BREAKING CHANGE: The graphiteWidth option has been removed` | Breaking Release | | ||
| `feat(pencil)!: The graphiteWidth option has been removed` | Breaking Release | | ||
|
||
source: | ||
<https://github.com/semantic-release/semantic-release/blob/master/README.md#commit-message-format> | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters