|
7 | 7 |
|
8 | 8 | jobs: |
9 | 9 | markdown-link-check-full: |
10 | | - # Only run on GitHub Enterprise |
11 | | - if: ${{ github.server_url == 'https://github.cds.internal.unity3d.com' }} |
12 | | - runs-on: [self-hosted, Linux, X64] |
| 10 | + runs-on: ubuntu-latest |
13 | 11 | steps: |
14 | 12 | - uses: actions/checkout@v2 |
15 | 13 | with: |
|
28 | 26 | run: | |
29 | 27 | pre-commit run --hook-stage manual markdown-link-check-full --all-files |
30 | 28 | full-pytest: |
31 | | - if: ${{ github.server_url == 'https://github.cds.internal.unity3d.com' }} |
32 | | - runs-on: [ self-hosted, Linux, X64 ] |
| 29 | + runs-on: ubuntu-latest |
33 | 30 | # TODO: Re-use pytest workflow once https://github.com/github/roadmap/issues/257 is done. |
34 | 31 | # steps: |
35 | 32 | # - uses: actions/checkout@v2 |
@@ -57,18 +54,16 @@ jobs: |
57 | 54 | uses: actions/setup-python@v2 |
58 | 55 | with: |
59 | 56 | python-version: ${{ matrix.python-version }} |
60 | | -# Caching not supported on GitHub Enterprise |
61 | | -# See https://github.com/actions/cache/issues/505 |
62 | | -# - name: Cache pip |
63 | | -# uses: actions/cache@v2 |
64 | | -# with: |
65 | | -# # This path is specific to Ubuntu |
66 | | -# path: ~/.cache/pip |
67 | | -# # Look to see if there is a cache hit for the corresponding requirements file |
68 | | -# key: ${{ runner.os }}-pip-${{ hashFiles('ml-agents/setup.py', 'ml-agents-envs/setup.py', 'test_requirements.txt', matrix.pip_constraints) }} |
69 | | -# restore-keys: | |
70 | | -# ${{ runner.os }}-pip- |
71 | | -# ${{ runner.os }}- |
| 57 | + - name: Cache pip |
| 58 | + uses: actions/cache@v2 |
| 59 | + with: |
| 60 | + # This path is specific to Ubuntu |
| 61 | + path: ~/.cache/pip |
| 62 | + # Look to see if there is a cache hit for the corresponding requirements file |
| 63 | + key: ${{ runner.os }}-pip-${{ hashFiles('ml-agents/setup.py', 'ml-agents-envs/setup.py', 'test_requirements.txt', matrix.pip_constraints) }} |
| 64 | + restore-keys: | |
| 65 | + ${{ runner.os }}-pip- |
| 66 | + ${{ runner.os }}- |
72 | 67 | - name: Display Python version |
73 | 68 | run: python -c "import sys; print(sys.version)" |
74 | 69 | - name: Install dependencies |
|
0 commit comments