Skip to content

Commit 20fb0e0

Browse files
author
gerrymanoim
authored
Merge pull request #160 from quantopian/submodule-pull
BLD: easier submodule checkout
2 parents 9a59d5d + 7f5c011 commit 20fb0e0

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
numpy: 1.18.1
3131
steps:
3232
- uses: actions/checkout@v2
33+
with:
34+
submodules: 'recursive'
3335
- name: Install newer clang (ubuntu)
3436
if: startsWith(matrix.os, 'ubuntu') && matrix.compiler == 'clang'
3537
run: |
@@ -42,16 +44,8 @@ jobs:
4244
if: startsWith(matrix.os, 'macos') && matrix.compiler == 'clang'
4345
run: |
4446
brew install llvm
45-
- name: Checkout submodules
46-
shell: bash
47-
run: |
48-
# If your submodules are configured to use SSH instead of HTTPS please uncomment the following line
49-
git config --global url."https://github.com/".insteadOf "[email protected]:"
50-
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
51-
git submodule sync --recursive
52-
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
5347
- name: Set up Python ${{ matrix.python-version }}
54-
uses: actions/setup-python@v1
48+
uses: actions/setup-python@v2
5549
with:
5650
python-version: ${{ matrix.python-version }}
5751
- name: Install python dependencies

0 commit comments

Comments
 (0)