Skip to content

DEP: migrate prompting from rich to termcolor #968

DEP: migrate prompting from rich to termcolor

DEP: migrate prompting from rich to termcolor #968

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
paths-ignore:
- .pre-commit-config.yaml
workflow_dispatch:
jobs:
tests:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- '3.9'
- 3.12-dev
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup package
run: |
python -m pip install --upgrade pip
python -m pip install "."
python -m pip install -r requirements/tests.txt
- name: Run tests
run: |
pytest --color=yes
tests_isolated_app:
name: Python ${{ matrix.python-version }} (isolated deps)
strategy:
matrix:
python-version:
- '3.9'
- 3.12-dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup package
run: |
python -m pip install --upgrade pip
python -m pip install ".[isolated]"
python -m pip install -r requirements/tests.txt
- name: Run tests
run: |
pytest --color=yes
type-check:
runs-on: ubuntu-latest
name: type check
concurrency:
group: ${{ github.ref }}-type
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
# Match minimal supported Python version
# to make sure we're not using unparseable syntax
python-version: '3.9'
- name: Build
run: |
python -m pip install --upgrade pip
python -m pip install "."
python -m pip install -r requirements/typecheck.txt
- name: Run mypy
run: mypy src/idefix_cli
docs:
runs-on: ubuntu-latest
name: docs
concurrency:
group: ${{ github.ref }}-docs
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Setup env
run: |
python -m pip install --upgrade pip
python -m pip install -r docs/requirements.txt
- name: Build
run: |
python -m mkdocs build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: site
path: site