Skip to content

Commit

Permalink
[Windows] Cache Python packages to reduce the bandwidth usage of PyPI.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoconni committed Oct 19, 2024
1 parent 6588f7e commit 7b86115
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/cpp-python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,21 +295,21 @@ jobs:
steps:
- name: Checkout JSBSim
uses: actions/checkout@v4
- name: Cache Python packages & CTest cost data
# CTestCostData.txt is used by CTest to optimize the distribution of the
# tests between the CPU cores and reduce execution time.
uses: actions/cache@v4
with:
path: |
~\AppData\Local\pip\Cache
build\Testing\Temporary\CTestCostData.txt
key: ${{ runner.os }}-${{ hashFiles('tests\CMakeLists.txt', 'python\requirements.tx') }}
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install Python packages
run: pip install -r python/requirements.txt
- name: Cache CTest cost data
# Cache the file is used by CTest to optimize the distribution of the tests
# between the cores and reduce execution time.
uses: actions/cache@v4
id: cache-win-msvc
with:
path: |
build/Testing/Temporary/CTestCostData.txt
key: ${{ runner.os }}-${{ hashFiles('tests/CMakeLists.txt') }}
- name: Checkout CxxTest
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 7b86115

Please sign in to comment.