-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6104c6a
commit d8cb63f
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |