mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-08-14 21:00:37 +03:00
Create backend.yml
This commit is contained in:
parent
798dce4b91
commit
afe543827f
39
.github/workflows/backend.yml
vendored
Normal file
39
.github/workflows/backend.yml
vendored
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user