File tree 2 files changed +36
-0
lines changed
2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 33
33
run : |
34
34
tox -e ${{ matrix.config[1] }}
35
35
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
+
36
57
deploy-tag-to-pypi :
37
58
# only deploy on tags, see https://stackoverflow.com/a/58478262/1320237
38
59
if : startsWith(github.ref, 'refs/tags/v')
Original file line number Diff line number Diff line change @@ -601,3 +601,18 @@ pip install tox
601
601
tox
602
602
```
603
603
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 ).
You can’t perform that action at this time.
0 commit comments