chore(deps): update dependency rich to v13.9.4 #388
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: tests | |
on: | |
- pull_request | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: psf/black@stable | |
build-test: | |
defaults: | |
run: | |
shell: bash | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
max-parallel: 10 | |
matrix: | |
python-version: ['3.10', '3.9', '3.8', '3.7'] | |
os: [ubuntu-latest, macos-latest] | |
exclude: | |
# mac os: exclude all but the last two python releases | |
- os: macos-latest | |
python-version: 3.8 | |
- os: macos-latest | |
python-version: 3.7 | |
# windows: exclude all but the last two python releases | |
# - os: windows-latest | |
# python-version: 3.8 | |
# - os: windows-latest | |
# python-version: 3.7 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python tools | |
run: | | |
python -m pip install --upgrade pip | |
- name: Set up a test environment with pytest and the runtime dependencies | |
run: | | |
python -m venv vtest | |
export PATH=vtest/bin/:vtest/Scripts/:$PATH | |
pip install . | |
pip install -r dev-requirements.txt | |
pip install -r requirements.txt | |
- name: Run unit tests and module doctests | |
run: | | |
export PATH=vtest/bin/:vtest/Scripts/:$PATH | |
XDG_RUNTIME_DIR=.tests_rundir python -m pytest | |
- name: Run typer tests (linux) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
export PATH=vtest/bin/:vtest/Scripts/:$PATH | |
pytype --config pytype.cfg --keep-going . | |
- name: Set up a environment to install into, and install the package from sources | |
run: | | |
python -m venv vinstall | |
export PATH=vinstall/bin/:vinstall/Scripts/:$PATH | |
python -m pip install . | |
- name: Test that the installed executable is able to run | |
run: | | |
export PATH=vinstall/bin/:vinstall/Scripts/:$PATH | |
scioer --help |