File tree 3 files changed +25
-7
lines changed
3 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 43
43
run : python setup.py sdist
44
44
working-directory : xero-python
45
45
46
- # - name: Run Test
47
- # run: |
48
- # source venv/bin/activate
49
- # pip install -r requirements/test.txt
50
- # pytest -v
51
- # working-directory: xero-python
46
+ - name : Set up Node environment
47
+ uses : actions/setup-node@v2
48
+ with :
49
+ node-version : 20
50
+
51
+ - name : Install Prism
52
+ run : npm install -g @stoplight/prism-cli
53
+
54
+ - name : Start PRISM Server
55
+ run : ./start-prism.sh & sleep 15
56
+ working-directory : xero-python/tests/utils
57
+
58
+ - name : Run Test
59
+ run : |
60
+ source venv/bin/activate
61
+ pytest -v
62
+ working-directory : xero-python
63
+
64
+ - name : Stop PRISM
65
+ if : success() || failure()
66
+ run : pkill -f prism
67
+ working-directory : xero-python
Original file line number Diff line number Diff line change 1
1
# make sure content of this file can be parsed by setup.load_requirements
2
2
python-dateutil >= 2.7
3
- urllib3 >= 2.2.3
3
+ urllib3
4
4
certifi
5
5
setuptools >= 75.1.0
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
1
3
prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero_accounting.yaml --host 127.0.0.1 --port 4010 &
2
4
prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero-app-store.yaml --host 127.0.0.1 --port 4011 &
3
5
prism mock https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/refs/heads/master/xero_assets.yaml --host 127.0.0.1 --port 4012 &
You can’t perform that action at this time.
0 commit comments