Make github action pylint tests #7
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: API | |
on: | |
push: | |
paths: | |
- backend/** | |
pull_request: | |
paths: | |
- backend/** | |
defaults: | |
run: | |
working-directory: backend | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: false | |
virtualenvs-in-project: false | |
installer-parallel: true | |
- name: Valiate poetry.lock | |
run: poetry check | |
- name: Install dependencies | |
run: poetry install --no-interaction | |
- name: Test | |
run: pytest tests | |
pylint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: false | |
virtualenvs-in-project: false | |
installer-parallel: true | |
- name: Valiate poetry.lock | |
run: poetry check | |
- name: Install dependencies | |
run: poetry install --no-interaction | |
- name: Test | |
run: pylint api tests | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: false | |
virtualenvs-in-project: false | |
installer-parallel: true | |
- name: Valiate poetry.lock | |
run: poetry check | |
- name: Install dependencies | |
run: poetry install --no-interaction | |
- name: Test | |
run: isort api tests --check-only |