Skip to content

Incorporate GitHub ci #13

Incorporate GitHub ci

Incorporate GitHub ci #13

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- github-ci
jobs:
test-code-suite:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: [3.11, 3.x]

Check failure on line 22 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 22, Col: 25): A sequence was not expected
- name: Install dependencies
run: |
pip install poetry
poetry install --with dev
- name: Run tests with coverage
run: |
poetry run pytest --cov=app --cov-report=term-missing
continue-on-error: false
- name: Run Bandit for security analysis
run: |
poetry run bandit -r app
continue-on-error: false
- name: Run Ruff for linting
run: |
poetry run ruff check .
continue-on-error: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image and run tests (during build)
run: |
docker build --target test -t zephir-api2:test .