| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- name: CI
- on:
- push:
- pull_request:
- concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
- jobs:
- lint-server:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v6
- - uses: actions/setup-python@v4
- with:
- python-version: '3.12'
- cache: 'pip'
- cache-dependency-path: 'requirements/*.txt'
- - run: pip install -r requirements/development.txt
- - run: make lint-server
- lint-client:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v6
- - uses: actions/setup-node@v6
- with:
- node-version-file: '.nvmrc'
- - run: npm ci
- - run: make lint-client
- test-server:
- runs-on: ubuntu-latest
- env:
- DJANGO_SETTINGS_MODULE: bakerydemo.settings.test
- steps:
- - uses: actions/checkout@v6
- - uses: actions/setup-python@v4
- with:
- python-version: '3.12'
- cache: 'pip'
- cache-dependency-path: 'requirements/*.txt'
- - run: pip install -r requirements/development.txt
- - run: ./manage.py check
- - run: ./manage.py makemigrations --check --noinput
- - run: ./manage.py test
|