Skip to content

add needs & runs-on to formatter action #8

add needs & runs-on to formatter action

add needs & runs-on to formatter action #8

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bootstrap poetry
run: pipx install poetry
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest -v --cov=google_books/
- name: Send report to Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
paralle: true
flag-name: Unit Test
github-token: ${{ secrets.GITHUB_TOKEN}}
coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
black_formatter:
needs: tests

Check failure on line 47 in .github/workflows/unit-tests.yaml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/unit-tests.yaml (Line: 47, Col: 12): Job 'black_formatter' depends on unknown job 'tests'.
runs-on: ubuntu-latest
steps:
- name: Run black formatting
run: poetry run black --check google_books/ tests/