Skip to content

Switch to pyproject.toml from setup.py #118

Switch to pyproject.toml from setup.py

Switch to pyproject.toml from setup.py #118

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
pip install --user validate-pyproject[all]
- 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
- name: Checking pyproject
run: |
validate-pyproject pyproject.toml
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