Skip to content

Test against v1.21, v1.20.4 #20

Test against v1.21, v1.20.4

Test against v1.21, v1.20.4 #20

Workflow file for this run

name: Run Tests
on:
pull_request:
types: [opened, synchronize]
branches: [ master ]
paths:
- '**.py'
- 'download_vault.sh'
- 'tox.ini'
- 'requirements.txt'
- 'pyproject.toml'
- 'setup.py'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
env:
- "3.14"
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv ruff
- name: Run Ruff
run: ruff check .
- name: Install tox
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv
- name: Install Python
if: startsWith(matrix.env, '3.') && matrix.env != '3.13'
run: uv python install --python-preference only-managed ${{ matrix.env }}
- name: Make test script executable
run: chmod +x ./download_vault.sh
- name: Run test script
run: ./download_vault.sh
- name: Run test suite vault 1.18.5
run: tox run --skip-pkg-install -e py${{ matrix.env }}-vault1185
- name: Run test suite vault 1.19.5
run: tox run --skip-pkg-install -e py${{ matrix.env }}-vault1195
- name: Run test suite vault 1.20.4
run: tox run --skip-pkg-install -e py${{ matrix.env }}-vault1204
- name: Run test suite vault 1.21.0
run: tox run --skip-pkg-install -e py${{ matrix.env }}-vault1210