Skip to content

Eth client Python package only deployed on pypi.org #86

Eth client Python package only deployed on pypi.org

Eth client Python package only deployed on pypi.org #86

Workflow file for this run

---
name: Python client checks, package build and deployment
on:
workflow_dispatch:
push:
tags:
- 'client-*'
branches:
- develop
- master
paths:
- client/**
- .github/workflows/python-client.yml
pull_request:
paths:
- client/**
- .github/workflows/python-client.yml
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v3
- run: pip install flake8
- name: Flake8 lint Python code
run: (cd client && find src/ -type f -name '*.py' -exec flake8 --max-line-length=120 '{}' '+')
mypy:
name: Type checking
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v3
- run: pip install mypy
- name: Mypy type checking
run: (cd client && mypy src/)
packaging:
needs: [lint, mypy]
name: Build, test and deploy the Python package
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_pypi_deployment.yml@v1
with:
package_directory: "client/"
stable_deployment: true
check_changelog_version: startsWith(github.ref,'refs/tags/')

Check failure on line 48 in .github/workflows/python-client.yml

View workflow run for this annotation

GitHub Actions / Python client checks, package build and deployment

Invalid workflow file

The workflow is not valid. .github/workflows/python-client.yml (Line: 48, Col: 32): Unexpected value 'startsWith(github.ref,'refs/tags/')'
publish: ${{ github.event_name == 'push' }}
secrets:
pypi_token: secrets.PYPI_PUBLIC_API_TOKEN