Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
99c32493
Unverified
Commit
99c32493
authored
Sep 29, 2022
by
Yih-Dar
Committed by
GitHub
Sep 29, 2022
Browse files
Fix confusing working directory in Push CI (#19234)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
6957350c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
.github/workflows/self-push.yml
.github/workflows/self-push.yml
+4
-6
No files found.
.github/workflows/self-push.yml
View file @
99c32493
...
...
@@ -96,11 +96,6 @@ jobs:
echo "env.CI_BRANCH = ${{ env.CI_BRANCH }}"
echo "env.CI_SHA = ${{ env.CI_SHA }}"
-
name
:
Checkout transformers
uses
:
actions/checkout@v2
with
:
fetch-depth
:
2
-
name
:
Update clone using environment variables
working-directory
:
/transformers
run
:
|
...
...
@@ -111,12 +106,14 @@ jobs:
echo "log = $(git log -n 1)"
-
name
:
Cleanup
working-directory
:
/transformers
run
:
|
rm -rf tests/__pycache__
rm -rf tests/models/__pycache__
rm -rf reports
-
name
:
Fetch the tests to run
working-directory
:
/transformers
# TODO: add `git-python` in the docker images
run
:
|
pip install --upgrade git-python
...
...
@@ -126,10 +123,11 @@ jobs:
uses
:
actions/upload-artifact@v2
with
:
name
:
test_fetched
path
:
test_preparation.txt
path
:
/transformers/
test_preparation.txt
-
id
:
set-matrix
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 `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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment