Skip to content

fix: type

fix: type #1427

Workflow file for this run

name: tests
on:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- "3.10"
- "3.11"
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install-dependencies
run: |
python -m pip install --upgrade pip
pip install ".[tests]"
pip install --upgrade --no-deps --force-reinstall --no-cache-dir https://github.com/dream-faster/krisi/archive/main.zip
- name: run-tests
run: pytest tests/fold/unit -s --cov --durations 0
- uses: codecov/codecov-action@v3
integration-tests:
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- "3.10"
- "3.11"
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install-dependencies
run: |
python -m pip install --upgrade pip
pip install ".[tests]"
pip install ".[all]"
pip install --upgrade --no-deps --force-reinstall --no-cache-dir https://github.com/dream-faster/krisi/archive/main.zip
- name: run-tests
run: pytest tests/fold/integration -s --durations 0
doc-tests:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: install-dependencies
run: |
python -m pip install --upgrade pip
pip install ".[tests]"
pip install ".[all]"
pip install --upgrade --no-deps --force-reinstall --no-cache-dir https://github.com/dream-faster/krisi/archive/main.zip
- name: run-tests
run: pytest src/ -s --durations 0