fix update_sdk #23
Workflow file for this run
This file contains 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: Run Tests | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
run-tests: | |
name: "Test (Python ${{ matrix.python-version }} ${{ matrix.architecture }})" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
architecture: ["x86", "x64"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: ${{ matrix.architecture }} | |
- name: Install Python requirements | |
run: pip install --upgrade --upgrade-strategy eager . | |
- name: Run tests | |
run: python -m unittest discover -s tests | |
run-tests-cygwin: | |
name: "Test Cygwin" | |
runs-on: windows-latest | |
# Use cygwin bash | |
# From: https://github.com/marketplace/actions/install-cygwin#line-terminators | |
defaults: | |
run: | |
shell: C:\tools\cygwin\bin\bash.exe --login -o igncr '{0}' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Cygwin | |
uses: egor-tensin/setup-cygwin@v4 | |
with: | |
packages: python3 | |
- name: Install Python requirements | |
run: pip3 install --upgrade --upgrade-strategy eager $(cygpath --absolute $GITHUB_WORKSPACE) | |
- name: Run tests | |
run: python -m unittest discover -s $(cygpath --absolute "${GITHUB_WORKSPACE}/tests") |