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