Skip to content

Allow setting custom anchors/hashes for the items. #24

Allow setting custom anchors/hashes for the items.

Allow setting custom anchors/hashes for the items. #24

Workflow file for this run

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