Implement option to have just one uncollapsed item (#10) #23
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- name: Lint | |
os: ubuntu-latest | |
pyversion: '3.11' | |
nodeversion: '18' | |
lint: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.pyversion }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.pyversion }} | |
- name: Set up Node ${{ matrix.nodeversion }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.nodeversion }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U black flake8 | |
npm install eslint --save-dev | |
- name: Lint Python | |
if: matrix.lint == 1 | |
run: | | |
black --check ./*.py | |
flake8 ./*.py --max-line-length=89 | |
- name: Lint JS | |
if: matrix.lint == 1 | |
run: | | |
npx eslint src |