Skip to content

Introduce workflow run crate #332

Introduce workflow run crate

Introduce workflow run crate #332

Workflow file for this run

name: pytest
on:
push:
branches:
- main
paths:
- "sapporo/**"
- "tests/**"
- "setup.py"
workflow_dispatch: {}
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install jq
run: |
sudo apt update
sudo apt install -y jq
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
- name: Install dependencies
run: |
python3 -m pip install --no-cache-dir --progress-bar off -U pip setuptools wheel
python3 -m pip install --no-cache-dir --progress-bar off -U .[tests]
- name: Check with pytest on flask-server
run: |
TEST_SERVER_MODE=flask pytest -s ./tests/unit_test
- name: Check with pytest on uwsgi-server
run: |
TEST_SERVER_MODE=uwsgi pytest -s ./tests/unit_test