Skip to content

v1.2.0

v1.2.0 #2

Workflow file for this run

name: New Release
on:
release:
types: [published]
permissions:
contents: write
jobs:
crosscheck:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: ["1.5.0"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set Up Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install pyflowcl
run: poetry install --with dev
- name: Run Tests
run: poetry run pytest
docs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: ["1.5.0"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
needs: crosscheck
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set Up Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install pyflowcl
run: poetry install --with dev
- name: Deploy Docs
run: poetry run mkdocs gh-deploy --force
pypi-publish:
name: Build and Upload
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: ["1.5.0"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
needs: crosscheck
environment:
name: pypi
url: https://pypi.org/p/pyflowcl
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- name: Set Up Poetry
uses: abatilo/actions-poetry@v2
- name: Install django-payments-flow
run: poetry install --with dev
- name: Build pyflowcl
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1