Skip to content

update: ci/cd

update: ci/cd #9

Workflow file for this run

name: Continuous Delivery
on:
push:
tags: ["*.*.*"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies with Poetry
run: |
poetry config virtualenvs.create false
poetry install
- name: Test with pytest
run: |
poetry run pytest -m "not slow and not benchmark" -vv
deploy:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: 🏗️ Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: 📦 Build (pre-deploy)
run: |
poetry publish --build --dry-run
- name: 🚀 Deploy
run: |
poetry publish
with:

Check failure on line 47 in .github/workflows/cd.yml

View workflow run for this annotation

GitHub Actions / Continuous Delivery

Invalid workflow file

The workflow is not valid. .github/workflows/cd.yml (Line: 47, Col: 9): Unexpected value 'with'
pypi_token: ${{ secrets.PYPI_API_TOKEN }}