Skip to content

Commit 501f02f

Browse files
Cache Ruby and Python package managers (#347)
1 parent 4be7059 commit 501f02f

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/build-python.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,23 @@ jobs:
2727
python-version: [3.7, 3.8, 3.9, '3.10' ]
2828
steps:
2929
- uses: actions/checkout@v2
30+
- name: Set up Python ${{ matrix.python-version }}
31+
uses: actions/setup-python@v2
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
cache: 'pip'
35+
3036
- name: Download workflow artifact
3137
uses: dawidd6/[email protected]
3238
with:
3339
workflow: "build-libs.yml"
3440
path: ./libs/${{ matrix.os-artifact[1] }}
3541
github_token: ${{ secrets.GITHUB_TOKEN }}
3642
name: ${{ matrix.os-artifact[1] }}
37-
- name: Set up Python ${{ matrix.python-version }}
38-
uses: actions/setup-python@v2
39-
with:
40-
python-version: ${{ matrix.python-version }}
43+
4144
- name: Build, Test, Pack
4245
run: |
43-
python -m pip install -r requirements.txt
46+
python -m pip install --upgrade --upgrade-strategy eager -r requirements.txt
4447
python -m pip install pytest pytest-cov
4548
python ../devops/build_sdks.py
4649
python -m pytest --cache-clear ./tests --junitxml=test_output.xml --cov=.

.github/workflows/build-ruby.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ jobs:
2424
uses: ruby/[email protected]
2525
with:
2626
ruby-version: ${{ matrix.ruby-version }}
27+
bundler-cache: true
2728
- name: Set up Python
2829
uses: actions/setup-python@v2
2930
with:
3031
python-version: 3.9
32+
cache: 'pip'
33+
3134
- name: Download workflow artifact
3235
uses: dawidd6/[email protected]
3336
with:

0 commit comments

Comments
 (0)