Fix doc misspelling (#2710) #6452
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: Workflow for codecov | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# file paths to consider in the event | |
paths: | |
- 'towhee/**' | |
- '!**.md' | |
- 'tests/**' | |
- '.github/workflows/codecov.yml' | |
- 'test_requirements.txt' | |
jobs: | |
run: | |
runs-on: self-hosted | |
container: | |
image: towhee/towhee-ut:latest | |
options: --user root | |
volumes: | |
- /__w/towhee/towhee:/__w/towhee/towhee | |
steps: | |
- name: work around permission | |
run: | | |
git config --global --add safe.directory /__w/towhee/towhee | |
rm -rf .git/hooks/post-checkout | |
- uses: actions/checkout@master | |
- name: Generate coverage report | |
run: | | |
export TOWHEE_WORKER=True | |
rm -rf ./coverage.xml | |
pip install coverage pytest pytest-cov pytest-xdist | |
pip install -r test_requirements.txt | |
apt-get update --fix-missing && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends -y ffmpeg libsm6 libxext6 | |
coverage erase | |
coverage run -m pytest | |
coverage xml | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: /__w/towhee/towhee/coverage.xml | |
fail_ci_if_error: true |