Remove python 3.8 and vault versions 1.11 and 1.12 for next major release #866
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: Test build and installation | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3.13" | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- name: Install Poetry | |
uses: snok/install-poetry@v1.3.4 | |
with: | |
version: 1.6.1 | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Set up Python ${{ matrix.python-version }} | |
id: python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
# cache: ${{ !startsWith(matrix.os, 'windows') && 'poetry' || '' }} | |
- name: Install dependencies | |
run: poetry install --no-interaction --no-root | |
- name: Build | |
run: poetry build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist_${{ matrix.os }}_py${{ matrix.python-version }} | |
path: dist/ | |
retention-days: 7 | |
if-no-files-found: error | |
- name: Test install wheel | |
run: | | |
pip install dist/hvac-*.whl | |
pip uninstall -y hvac | |
- name: Test install sdist | |
run: | | |
pip install dist/hvac-*.tar.gz | |
pip uninstall -y hvac |