Update demo-ci.yml #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Demo CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.10"] | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install javascript dependencies | |
uses: borales/[email protected] | |
with: | |
cmd: --cwd web install # will run `yarn install` command | |
- name: Lint javascript code | |
uses: borales/[email protected] | |
with: | |
cmd: --cwd web run lint # will run `yarn run lint` command | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: 'backend/requirements.txt' | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
cat backend/requirements.txt | grep -v '#' | xargs -n 1 pip install | |
continue-on-error: false | |
- name: Run flake | |
run: | | |
flake8 backend --config backend/.flake8 | |
continue-on-error: false | |