From afe543827f8c089504215e331dd8153532da37e1 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Fri, 12 Apr 2024 20:32:30 +0300 Subject: [PATCH] Create backend.yml --- .github/workflows/backend.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/backend.yml diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml new file mode 100644 index 00000000..e8be7662 --- /dev/null +++ b/.github/workflows/backend.yml @@ -0,0 +1,39 @@ +name: Backend CI + +defaults: + run: + working-directory: rsconcept/backend + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.12] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements_dev.txt + - name: Lint + run: | + pylint cctext + mypy cctext + - name: Run Tests + run: | + python manage.py check + python manage.py test