Skip to content

pre-commit autoupdate && pre-commit run --all-files #100

pre-commit autoupdate && pre-commit run --all-files

pre-commit autoupdate && pre-commit run --all-files #100

Workflow file for this run

name: Partition Manager CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Linting Tools
run: |
python -m pip install --upgrade pip
pip install --user pylint==3.1.0
pip install --user black~=23.9.1
pip install --user flake8~=6.1.0
pip install --user pytest
- name: Install Partition Manager
run: |
pip install --editable ".[pymysql]"
- name: Analysing the code with pylint
run: |
python -m pylint -E partitionmanager
- name: Checking format with Black
run: |
python -m black --check .
- name: Checking format with Flake8
run: |
python -m flake8
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Partition Manager
run: |
pip install --editable ".[pymysql]"
- name: Install PyTest
run: |
pip install pytest
- name: Run PyTest
run: |
pytest --junitxml=test-results/junit.xml