try using in-built factory method #725
Workflow file for this run
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: | |
branches: [master, devel] | |
pull_request: | |
branches: [master, devel] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Poetry | |
run: | | |
pipx install poetry | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
architecture: 'x64' | |
# cache: 'poetry' | |
- name: Run poetry install | |
run: | | |
poetry env use '3.10' | |
poetry install | |
- name: Check formatting with Black | |
run: | | |
poetry run black --check --diff --color . | |
- name: Run flake8 | |
run: | | |
poetry run flake8 | |
- name: Run isort | |
run: | | |
poetry run isort --check --diff --color . | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Set up JS requirements | |
run: npm install | |
working-directory: ./frontend | |
- name: Run ESLint | |
run: npm run lint | |
working-directory: ./frontend |