Skip to content

Commit ee0dfbf

Browse files
committed
more documentation on the README
1 parent 7e36ceb commit ee0dfbf

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/test-and-publish.yml

+21
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,27 @@ jobs:
3333
run: |
3434
tox -e ${{ matrix.config[1] }}
3535
36+
cli:
37+
runs-on: ubuntu-latest
38+
name: cli
39+
steps:
40+
- uses: actions/checkout@v4
41+
- name: Set up Python
42+
uses: actions/setup-python@v5
43+
with:
44+
python-version: "3.12"
45+
- name: Install dependencies
46+
run: |
47+
python -m pip install --upgrade pip
48+
pip install .[cli] tox
49+
- name: Check API key
50+
run: wise check
51+
env:
52+
# add the secret https://docs.github.com/de/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions
53+
WISE_API_KEY: ${{ secrets.WISE_API_KEY }}
54+
- name: Run the tests with a real API key
55+
run: tox -e py312 -- --api_token ${{ secrets.WISE_API_KEY }}
56+
3657
deploy-tag-to-pypi:
3758
# only deploy on tags, see https://stackoverflow.com/a/58478262/1320237
3859
if: startsWith(github.ref, 'refs/tags/v')

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -601,3 +601,18 @@ pip install tox
601601
tox
602602
```
603603

604+
You can also run the tests against the sandbox API:
605+
606+
```sh
607+
tox -e py312 -- --api_token=12345678-1234-1234-1234-123456789abcde
608+
```
609+
610+
## Changelog
611+
612+
### v0.0.1
613+
614+
- Initial release
615+
616+
## License
617+
618+
The code is released under the [AGPL License](LICENSE).

0 commit comments

Comments
 (0)