Skip to content

Add release candidate and change trigger #18

Add release candidate and change trigger

Add release candidate and change trigger #18

Workflow file for this run

name: CI
on:
push:
branches:
- github-ci
jobs:
CI:
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 .