Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ name: Python application

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "0 2 * * 3"
release:
types: [published]

permissions:
contents: read
Expand Down Expand Up @@ -41,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ You will need to find and replace occurences of
and [Creative Commons](https://creativecommons.org/chooser/).
Replace [`LICENSE`](LICENSE) file with the license you choose.
- Update the `CITATION.cff` file with your information.
- once you change the code under `src`, please make sure to update
- `docs/tutorial/tutorial.ipynb` (add your usage example)
- `tests/test_mockup.py` (delete file and add your own tests following the
naming conventions `test_<filename>.py`)

## Development environment

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

Then you want to run locally the commands which are check in the CI/CD pipeline
(using GitHub Actions). You can type

```bash
# run unittests
pytest tests
# format code and sort imports
black .
isort .
# lint code and check for obvious errors
ruff check src
```

## Basic usage

> works using this template
Expand Down
Loading