This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
Cambio de version #5
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: Release & Build Docs | |
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@v4 | |
- 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 django-payments-khipu | |
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@v4 | |
- 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 django-payments-khipu | |
run: poetry install --with docs,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/django-payments-khipu | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
- name: Set Up Poetry | |
uses: abatilo/actions-poetry@v2 | |
- name: Install django-payments-khipu | |
run: poetry install --with dev | |
- name: Build django-payments-khipu | |
run: poetry build | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |