Skip to content

Commit 0eaabb2

Browse files
authored
Release from gh (#16)
* 🐛 trigger run on GitHub release * 🔧 change to 3.10 as 3.9 is out of life * 🎨 format and update to package details - reflect changes made in documentation of template logic - format document (remove trailing spaces, fix line breaks) * 📝 some more instructions * 📝 add development tooling commands
1 parent 7b5ddae commit 0eaabb2

4 files changed

Lines changed: 117 additions & 95 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ name: Python application
55

66
on:
77
push:
8+
branches: ["main"]
89
pull_request:
910
branches: ["main"]
1011
schedule:
1112
- cron: "0 2 * * 3"
13+
release:
14+
types: [published]
1215

1316
permissions:
1417
contents: read
@@ -41,7 +44,7 @@ jobs:
4144
runs-on: ubuntu-latest
4245
strategy:
4346
matrix:
44-
python-version: ["3.11", "3.12"]
47+
python-version: ["3.10", "3.11", "3.12", "3.13"]
4548
steps:
4649
- uses: actions/checkout@v4
4750
- name: Set up Python ${{ matrix.python-version }}

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ You will need to find and replace occurences of
2020
and [Creative Commons](https://creativecommons.org/chooser/).
2121
Replace [`LICENSE`](LICENSE) file with the license you choose.
2222
- Update the `CITATION.cff` file with your information.
23+
- once you change the code under `src`, please make sure to update
24+
- `docs/tutorial/tutorial.ipynb` (add your usage example)
25+
- `tests/test_mockup.py` (delete file and add your own tests following the
26+
naming conventions `test_<filename>.py`)
2327

2428
## Development environment
2529

@@ -29,6 +33,19 @@ Install package so that new code is picked up in a restared python interpreter:
2933
pip install -e ".[dev]"
3034
```
3135

36+
Then you want to run locally the commands which are check in the CI/CD pipeline
37+
(using GitHub Actions). You can type
38+
39+
```bash
40+
# run unittests
41+
pytest tests
42+
# format code and sort imports
43+
black .
44+
isort .
45+
# lint code and check for obvious errors
46+
ruff check src
47+
```
48+
3249
## Basic usage
3350

3451
> works using this template

0 commit comments

Comments
 (0)