Skip to content

Interactive interfaces #27

Interactive interfaces

Interactive interfaces #27

name: python-test
on:
pull_request:
types: [review_requested, opened, synchronize, reopened]
branches: [dev, main]
workflow_dispatch:
inputs:
rerun:
description: 'Rerun the workflow'
required: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements.txt
env:
PIP_CACHE_DIR: ${{ runner.workspace }}/pip-cache
- name: Build mypy package
run: |
python ./setup.py build_ext --inplace
- name: Test with unittest
run: |
python -m unittest discover -s tests --p '*_test.py'