Interactive interfaces #27
Workflow file for this run
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: 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' |