Skip to content

Merge pull request #2 from benmezger/dependabot/github_actions/action… #2

Merge pull request #2 from benmezger/dependabot/github_actions/action…

Merge pull request #2 from benmezger/dependabot/github_actions/action… #2

Workflow file for this run

on:
push:
branches: [main]
jobs:
test:

Check failure on line 6 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 6, Col: 3): The workflow must contain at least one job with no dependencies.
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: cache poetry install
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-1.6.1
- uses: snok/install-poetry@v1
with:
version: 1.6.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: cache deps
id: cache-deps
uses: actions/cache@v2
with:
path: .venv
key: pydeps-${{ hashFiles('**/poetry.lock') }}
- run: poetry install --no-interaction --no-root
if: steps.cache-deps.outputs.cache-hit != 'true'
- name: Install dependencies
run: poetry install --no-interaction
- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build --skip-existing