"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "554d333ece6d170ebb0da3fade17174c75e506fc"
Unverified Commit 99c32493 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Fix confusing working directory in Push CI (#19234)


Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 6957350c
...@@ -96,11 +96,6 @@ jobs: ...@@ -96,11 +96,6 @@ jobs:
echo "env.CI_BRANCH = ${{ env.CI_BRANCH }}" echo "env.CI_BRANCH = ${{ env.CI_BRANCH }}"
echo "env.CI_SHA = ${{ env.CI_SHA }}" echo "env.CI_SHA = ${{ env.CI_SHA }}"
- name: Checkout transformers
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Update clone using environment variables - name: Update clone using environment variables
working-directory: /transformers working-directory: /transformers
run: | run: |
...@@ -111,12 +106,14 @@ jobs: ...@@ -111,12 +106,14 @@ jobs:
echo "log = $(git log -n 1)" echo "log = $(git log -n 1)"
- name: Cleanup - name: Cleanup
working-directory: /transformers
run: | run: |
rm -rf tests/__pycache__ rm -rf tests/__pycache__
rm -rf tests/models/__pycache__ rm -rf tests/models/__pycache__
rm -rf reports rm -rf reports
- name: Fetch the tests to run - name: Fetch the tests to run
working-directory: /transformers
# TODO: add `git-python` in the docker images # TODO: add `git-python` in the docker images
run: | run: |
pip install --upgrade git-python pip install --upgrade git-python
...@@ -126,10 +123,11 @@ jobs: ...@@ -126,10 +123,11 @@ jobs:
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: test_fetched name: test_fetched
path: test_preparation.txt path: /transformers/test_preparation.txt
- id: set-matrix - id: set-matrix
name: Organize tests into models name: Organize tests into models
working-directory: /transformers
# The `keys` is used as GitHub actions matrix for jobs, i.e. `models/bert`, `tokenization`, `pipeline`, etc. # The `keys` is used as GitHub actions matrix for jobs, i.e. `models/bert`, `tokenization`, `pipeline`, etc.
# The `test_map` is used to get the actual identified test files under each key. # The `test_map` is used to get the actual identified test files under each key.
# If no test to run (so no `test_map.json` file), create a dummy map (empty matrix will fail) # If no test to run (so no `test_map.json` file), create a dummy map (empty matrix will fail)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment