Skip to content

Commit ef84b31

Browse files
committed
add github action
1 parent 62c6d4a commit ef84b31

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/qa.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ name: Code Quality Assurance
33
on: [ push, pull_request ]
44

55
jobs:
6-
lint:
7-
name: Lint
6+
lint-python:
7+
name: Lint Python code
88
runs-on: ubuntu-latest
99
if: github.triggering_actor != 'github-actions[bot]'
10+
permissions:
11+
contents: read
1012
strategy:
1113
matrix:
1214
python-version: [ "3.8", "3.10" ]
1315
steps:
14-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1517
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
1719
with:
1820
python-version: ${{ matrix.python-version }}
1921
- name: Install dependencies
@@ -22,3 +24,17 @@ jobs:
2224
pip install "tox<4.0.0"
2325
- name: Check code quality with flake8
2426
run: tox -e flake8
27+
lint-js:
28+
name: Lint Javascript code
29+
runs-on: ubuntu-latest
30+
if: github.triggering_actor != 'github-actions[bot]'
31+
permissions:
32+
contents: read
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Setup Biome
36+
uses: biomejs/setup-biome@v2
37+
with:
38+
version: latest
39+
- name: Run Biome
40+
run: biome ci assets/

0 commit comments

Comments
 (0)