run all #4
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: Python Package CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
quality: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] # [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ["3.11"] # ["3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install black isort pylint pydocstyle pytest pytest-cov build | |
pip install -r requirements.txt | |
pip install -e . | |
- name: Run Black | |
run: black . --check | |
continue-on-error: true | |
- name: Run isort | |
run: isort . --check | |
continue-on-error: true | |
- name: Run Pylint | |
run: pylint src tests | |
continue-on-error: true | |
- name: Run pydocstyle | |
run: pydocstyle src | |
continue-on-error: true | |
- name: Run tests with coverage | |
run: pytest tests/ | |
continue-on-error: true | |
- name: Build package | |
run: python -m build | |
continue-on-error: true |