Merge pull request #6463 from akx/patch-1
CI: Use native actions/setup-python caching
This commit is contained in:
commit
2b94ec7886
11
.github/workflows/on_pull_request.yaml
vendored
11
.github/workflows/on_pull_request.yaml
vendored
|
@ -19,15 +19,12 @@ jobs:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.10.6
|
python-version: 3.10.6
|
||||||
- uses: actions/cache@v2
|
cache: pip
|
||||||
with:
|
cache-dependency-path: |
|
||||||
path: ~/.cache/pip
|
**/requirements*txt
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
- name: Install PyLint
|
- name: Install PyLint
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
|
8
.github/workflows/run_tests.yaml
vendored
8
.github/workflows/run_tests.yaml
vendored
|
@ -14,11 +14,9 @@ jobs:
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.10.6
|
python-version: 3.10.6
|
||||||
- uses: actions/cache@v3
|
cache: pip
|
||||||
with:
|
cache-dependency-path: |
|
||||||
path: ~/.cache/pip
|
**/requirements*txt
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
||||||
restore-keys: ${{ runner.os }}-pip-
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: python launch.py --tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test
|
run: python launch.py --tests basic_features --no-half --disable-opt-split-attention --use-cpu all --skip-torch-cuda-test
|
||||||
- name: Upload main app stdout-stderr
|
- name: Upload main app stdout-stderr
|
||||||
|
|
Loading…
Reference in New Issue
Block a user