Skip to content

Merge branch 'main' of https://github.com/fivan999/django-rest-practi… #27

Merge branch 'main' of https://github.com/fivan999/django-rest-practi…

Merge branch 'main' of https://github.com/fivan999/django-rest-practi… #27

name: Python package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
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/base.txt
pip install -r requirements/dev.txt
pip install -r requirements/test.txt
- name: code check
run: |
flake8 . --count --show-source --statistics
black . --check
isort . --trailing-comma --check
- name: Run tests
run: |
pytest