Skip to content

Commit

Permalink
Update to use the native gitrunner
Browse files Browse the repository at this point in the history
  • Loading branch information
cscollett committed Aug 16, 2024
1 parent b24b175 commit 1df3422
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 13 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,34 @@ on:
- github-ci

jobs:
test:
build-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Build Docker image for testing
- name: Install dependencies
run: |
docker build --target test -t zephir-api2:test .
pip install poetry
poetry install --with dev
- name: Run tests
run: |
docker run --rm zephir-api2:test
poetry run pytest app
continue-on-error: false

- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: pytest-results
path: ./tests
- 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 .
continue-on-error: false
207 changes: 206 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ boto3 = "^1.34.154"
[tool.poetry.group.dev.dependencies]
pytest = "^8.2.2"
pytest-flask = "^1.3.0"
bandit = "^1.7.9"
ruff = "^0.6.1"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 1df3422

Please sign in to comment.