Skip to content

Validate SSH Example + Extra documentation #127

Validate SSH Example + Extra documentation

Validate SSH Example + Extra documentation #127

Workflow file for this run

name: Build Pipeline
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
pip3 install poetry
- name: Clean Environment
run: |
make clean
- name: Consume Dependencies
run: |
make venv
- name: Linters
run: |
make linters-diff
- name: Tests
run: |
make test
- name: Package
run: |
make package
- name: Publish
run: |
make publish
if: ${{ github.ref == 'refs/heads/main' && matrix.python-version == '3.11' }}
env:
TWINE_USERNAME: ${{ secrets.TWINE_PROD_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PROD_PASSWORD }}
- name: Version
id: version
if: ${{ github.ref == 'refs/heads/main' && matrix.python-version == '3.11' }}
run: |
version=$(poetry version -s | awk '{$1=$1};1')
echo "Version: $version"
echo "version=$version" >> $GITHUB_OUTPUT
- name: Tag
id: "tag_create"
continue-on-error: true
uses: rickstaa/action-create-tag@v1
if: ${{ github.ref == 'refs/heads/main' && matrix.python-version == '3.11' }}
with:
tag: v${{ steps.version.outputs.version }}
tag_exists_error: false