Optimize Towhee logging module #3859
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: Test on pull request | |
on: | |
pull_request: | |
branches: | |
- main | |
# file paths to consider in the event | |
paths: | |
- 'towhee/**' | |
- '!**.md' | |
- 'tests/**' | |
- '.github/workflows/pr_test.yml' | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@v2.3.1 | |
with: | |
python-version: 3.8 | |
- name: Run Test | |
run: | | |
cd tests/testcases | |
python3 -m pip install -U pip | |
python3 -m pip install --no-cache-dir -r requirements.text | |
export TOWHEE_WORKER=True | |
python3 -W ignore test_main.py |