Skip to content

Commit

Permalink
versiones en actions, bug en models
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofix committed Sep 28, 2024
1 parent a3c3c4c commit 787269a
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 71 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,56 +12,56 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: ["1.5.0"]
python-version: ["3.10"]
poetry-version: ["1.8.3"]
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 pyflowcl
run: poetry install --with dev
- name: Run Tests
run: poetry run pytest
- 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 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"]
python-version: ["3.10"]
poetry-version: ["1.8.3"]
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 pyflowcl
run: poetry install --with dev
- name: Deploy Docs
run: poetry run mkdocs gh-deploy --force
- 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 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"]
python-version: ["3.10"]
poetry-version: ["1.8.3"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
needs: crosscheck
Expand All @@ -71,14 +71,14 @@ jobs:
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-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
- 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-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
54 changes: 27 additions & 27 deletions .github/workflows/tests_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,40 @@ name: Tests&Coverage

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
tests:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
poetry-version: ["1.5.0"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
poetry-version: ["1.8.3"]
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 pyFlowCL
run: poetry install --with dev
- name: Run Tests and coverage
run: poetry run coverage run -m pytest
- name: Coverage report (xml)
run: poetry run coverage xml
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: "coverage.xml"
language: "python"
- 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 pyFlowCL
run: poetry install --with dev
- name: Run Tests and coverage
run: poetry run coverage run -m pytest
- name: Coverage report (xml)
run: poetry run coverage xml
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: "coverage.xml"
language: "python"
2 changes: 1 addition & 1 deletion pyflowcl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class PaymentRequest:
"""

amount: float = 0
apiKey: str | None = None
apiKey: Optional[str] = None
commerceOrder: str = ""
currency: Optional[str] = None
email: str = "correo@ejemplo.cl"
Expand Down

0 comments on commit 787269a

Please sign in to comment.