Skip to content

Commit

Permalink
Merge pull request #15 from Game-as-a-Service/feature/backend-backend…
Browse files Browse the repository at this point in the history
…-ci-flow

[Feature]backend CI flow
  • Loading branch information
metalalive authored Oct 27, 2023
2 parents 8c12619 + 9e2be52 commit 136c0dc
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/backend_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Python Package build test

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.12.0'
- name: Install poerty
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.6.1'
- name: Install dependencies by poerty
run: |
cd backend
poetry install
- name: Run linter by ruff
run: |
cd backend
poetry run ruff check -v app
- name: Run test by pytest
run: |
cd backend
poetry run pytest -v tests
2 changes: 1 addition & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ curl --request POST --http2 \

### Test
```bash
poetry run pytest -v ./tests/e2e/game.py
poetry run pytest -v ./tests/e2e/test_game.py
```

### Linter
Expand Down
File renamed without changes.

0 comments on commit 136c0dc

Please sign in to comment.