Skip to content

Commit 46624f5

Browse files
author
Jonathan Wenger
committed
Base seed
1 parent 5d36a13 commit 46624f5

File tree

212 files changed

+9624
-39360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+9624
-39360
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,35 @@ name: Upload Python Package
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
deploy:
11-
1211
runs-on: ubuntu-latest
1312

1413
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up Python
17-
uses: actions/setup-python@v2
18-
with:
19-
python-version: '3.x'
20-
- name: Install dependencies
21-
run: |
22-
python -m pip install --upgrade pip
23-
pip install build
24-
pip install -r ./requirements.txt
25-
pip install -r ./test-requirements.txt
26-
- name: Build package
27-
run: python -m build
28-
- name: Test package
29-
run: pytest -s -v --cov=Avalara.SDK --username=${{ secrets.API_USERNAME }} --password=${{ secrets.API_PASSWORD }}
14+
- uses: actions/checkout@v2
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: "3.x"
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install build
23+
pip install -r ./requirements.txt
24+
pip install -r ./test-requirements.txt
25+
- name: Retrieve bearer token
26+
id: get_bearer_token
27+
run: |
28+
response=$(curl -X POST ${{secrets.OKTA_ACCESS_TOKEN_URL}}/connect/token \
29+
-H "Content-Type: application/x-www-form-urlencoded" \
30+
-d "grant_type=client_credentials&client_id=${{secrets.OKTA_CLIENT_ID}}&client_secret=${{secrets.OKTA_CLIENT_SECRET}}")
31+
token=$(echo $response | jq -r '.access_token')
32+
echo "BEARER_TOKEN=${token}" >> $GITHUB_ENV
33+
- name: Build package
34+
run: python -m build
35+
- name: Test package
36+
run: pytest -s -v --cov=Avalara.SDK

Avalara/SDK/api/Avatax/V2/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

Avalara/SDK/api/Avatax/V2/addresses_api.py

Lines changed: 0 additions & 187 deletions
This file was deleted.

0 commit comments

Comments
 (0)