Skip to content

Merge pull request #79 from waydegg/add-auto-completion #2

Merge pull request #79 from waydegg/add-auto-completion

Merge pull request #79 from waydegg/add-auto-completion #2

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: lint and test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ruff-black-isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
- name: Install dependencies
run: |
python -m pip install .
- name: black check
run: black --check --preview .
- name: isort check
run: isort --profile black --check .
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install .
- name: Test with pytest
run: |
pytest
license-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install .
- name: Install pip-licenses
run: |
pip install pip-licenses
- name: Run license checking script
run: |
python tests/license_check.py