chore: updating the api client to add a Protect route #652
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry==${{ vars.POETRY_V2_VERSION }} | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
cache: "poetry" | |
python-version: ${{ matrix.python-version }} | |
cache-dependency-path: "pyproject.toml" | |
- name: Install invoke | |
run: pipx install invoke | |
- name: Install Dependencies | |
run: invoke install | |
- name: Validate Types | |
run: | | |
invoke type-check | |
- name: Run Tests | |
run: invoke test-report-xml | |
- name: Upload Test Coverage Reports | |
uses: codecov/codecov-action@v5.4.3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |