Skip to content

Workflow file for this run

name: Run tests on any Push event
on:
push:
branches:
- '*'
jobs:
Lints:
runs-on: ubuntu-latest
- uses: psf/black@stable

Check failure on line 9 in .github/workflows/action.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/action.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
with:
options: "--check --verbose"
src: "./src"
use_pyproject: true
Test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Run Docker Compose
run: docker compose -f docker-compose.yaml up -d
- name: Check Docker container
run: sleep 10
-
run: docker ps -a
-
run: docker compose logs
- name: Test Docker Start
run: curl http://127.0.0.1:8000
-
run: curl http://localhost:8000/unique_notes
- uses: actions/setup-python@v1
with:
python-version: '3.12'
architecture: 'x64'
- name: Install requirements
run: pip install -r requirements.txt
- name: Run tests
run: coverage run -m pytest tests/test_application.py
- name: Tests report
run: coverage report