Skip to content

ci: run tests on Python 3.9 to 3.14 #15

ci: run tests on Python 3.9 to 3.14

ci: run tests on Python 3.9 to 3.14 #15

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
tests:
name: Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e . pytest
- name: Install vcsim and govc
run: |
mkdir -p "$RUNNER_TEMP/govmomi-bin"
curl -fsSL -o "$RUNNER_TEMP/vcsim.tar.gz" https://github.com/vmware/govmomi/releases/download/v0.53.1/vcsim_Linux_x86_64.tar.gz
tar -xzf "$RUNNER_TEMP/vcsim.tar.gz" -C "$RUNNER_TEMP/govmomi-bin"
curl -fsSL -o "$RUNNER_TEMP/govc.tar.gz" https://github.com/vmware/govmomi/releases/download/v0.53.1/govc_Linux_x86_64.tar.gz
tar -xzf "$RUNNER_TEMP/govc.tar.gz" -C "$RUNNER_TEMP/govmomi-bin"
chmod +x "$RUNNER_TEMP/govmomi-bin/vcsim" "$RUNNER_TEMP/govmomi-bin/govc"
printf '%s\n' "$RUNNER_TEMP/govmomi-bin" >> "$GITHUB_PATH"
- name: Run test suite
run: |
pytest
pytest --run-integration tests/integration_vcsim