fix: set certificate expiry day for kcpt #795
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 | |
on: | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
- README.md | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
type: boolean | |
description: 'Run the build with tmate session (https://github.com/marketplace/actions/debugging-with-tmate)' | |
required: false | |
default: false | |
jobs: | |
build: | |
runs-on: ${{ matrix.runs-on }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- runs-on: ubuntu-latest | |
python-version: "3.8" | |
- runs-on: ubuntu-latest | |
python-version: "3.9" | |
- runs-on: ubuntu-latest | |
python-version: "3.10" | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
- name: Install Poetry | |
run: make poetry | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
cache: poetry | |
python-version: ${{ matrix.python-version }} | |
- name: Build package | |
run: make build | |
install: | |
runs-on: ${{ matrix.runs-on }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- runs-on: ubuntu-latest | |
python-version: "3.8" | |
openstack-version: zed | |
- runs-on: ubuntu-latest | |
python-version: "3.8" | |
openstack-version: "2023.1" | |
- runs-on: ubuntu-latest | |
python-version: "3.10" | |
openstack-version: "2023.2" | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
- name: Install Poetry | |
run: make poetry | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
cache: poetry | |
python-version: ${{ matrix.python-version }} | |
- name: Build package | |
run: make build | |
- name: Install package using constraints | |
run: pip install --constraint https://releases.openstack.org/constraints/upper/${{ matrix.openstack-version }} ./dist/*.whl | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: psf/black@stable | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- run: pipx install flake8 | |
- uses: suo/flake8-github-action@releases/v1 | |
with: | |
checkName: flake8 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- uses: isort/isort-action@master |