Skip to content

Incorporate GitHub ci #17

Incorporate GitHub ci

Incorporate GitHub ci #17

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
jobs:
test-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.x
- name: Display Python version
run: |
python --version
- 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 .