Skip to content

Update test command in GitHub Actions workflow #4

Update test command in GitHub Actions workflow

Update test command in GitHub Actions workflow #4

name: Python Package CI/CD

Check failure on line 1 in .github/workflows/python-package-ci-cd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-package-ci-cd.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: build
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
deploy:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Build and upload to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry build
twine upload dist/*