Skip to content

Commit

Permalink
Add ci GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaDoge1337 committed Nov 15, 2024
1 parent 6104c6a commit d8cb63f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: otus-scoring-api
on:
push:

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: install poetry
uses: snok/install-poetry@v1
with:
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: true
- name: install dependencies
run: poetry install
- name: run linter
run: poetry run ruff check
- name: run formatter
run: poetry run black .
- name: check import sorting
run: poetry run isort .
- name: run domain tests
run: poetry run python -m unittest ./tests/test_domain/test_services.py
- name: run infrastructure tests
run: poetry run python -m unittest ./tests/test_infrastructure/test_orm.py

0 comments on commit d8cb63f

Please sign in to comment.