Skip to content

Added CLI command for listing configurations. #132

Added CLI command for listing configurations.

Added CLI command for listing configurations. #132

Workflow file for this run

name: Main
on:
- push
- pull_request
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
os: ['ubuntu-22.04', 'ubuntu-24.04', 'macos-13', 'macos-14', 'macos-15', 'windows-2022', 'windows-2025']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
with:
python-version: ${{ matrix.python-version }}
- name: Cache Python Dependencies
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-os:${{ matrix.os }}-python:${{ matrix.python-version }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('pyproject.toml') }}
- name: Install Dependencies
shell: bash
run: pip3 install -r requirements.txt -r requirements-dev.txt
- name: Check Python Version Compatibility
shell: bash
run: scripts/check_python_version.sh
- name: Check Types
shell: bash
run: ./scripts/check_types.sh
- name: Check Lint
shell: bash
run: ./scripts/check_lint.sh
- name: Run Tests
shell: bash
run: ./scripts/run_tests.sh
deploy:
needs: test
strategy:
matrix:
python-version: ['3.11']
os: ['ubuntu-22.04']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
with:
python-version: ${{ matrix.python-version }}
- name: Cache Python Dependencies
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-os:${{ matrix.os }}-python:${{ matrix.python-version }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('pyproject.toml') }}
- name: Install Python Dependencies
shell: bash
run: pip3 install -r requirements.txt -r requirements-dev.txt
- name: Generate Documentation
shell: bash
run: ./scripts/gen_docs.sh
- name: Deploy
uses: casperdcl/deploy-pypi@10cf4cd83fc885003a8d4f37f93a5a0f0fc2d2f4 # v2.4.1
with:
build: --sdist --wheel --outdir dist .
# Only upload if a tag is pushed (otherwise just build & check).
upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
password: ${{ secrets.PYPI_TOKEN }}