Merge pull request #2 from cortado-tool/fix-pyinstaller-builds #53
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: Lint | |
on: [push, pull_request] | |
concurrency: | |
group: "${{ github.ref }}#${{ github.workflow}}" | |
cancel-in-progress: true | |
env: | |
PYTHON_VERSION: '3.10' | |
NODE_VERSION: '18' | |
jobs: | |
eslint-check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: src/frontend | |
steps: | |
- uses: actions/[email protected] | |
with: | |
lfs: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint script files | |
run: npm run lint-scripts | |
html-check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: src/frontend | |
steps: | |
- uses: actions/[email protected] | |
with: | |
lfs: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint HTML files | |
run: npm run lint-html | |
styles-check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: src/frontend | |
steps: | |
- uses: actions/[email protected] | |
with: | |
lfs: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint style files | |
run: npm run lint-styles | |
python-black-check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: src/backend | |
steps: | |
- uses: actions/[email protected] | |
with: | |
lfs: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
run: pip install black | |
- name: Lint python files | |
run: black --check . |