From d61d4e6c35870e9af8d3720596d44418d0e6df94 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Mon, 24 Jun 2024 20:48:11 -0500 Subject: [PATCH] attempt to enable caching, reduce usage --- .github/workflows/on_push.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/on_push.yml b/.github/workflows/on_push.yml index c1856fb5..a390d4b3 100644 --- a/.github/workflows/on_push.yml +++ b/.github/workflows/on_push.yml @@ -5,10 +5,9 @@ on: push jobs: python: strategy: - fail-fast: false matrix: version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] - os: [ubuntu-latest, windows-latest, macos-13] + os: [ubuntu-latest, windows-latest] exclude: - os: ubuntu-latest version: 3.6 @@ -25,6 +24,10 @@ jobs: version: 3.12 - os: ubuntu-latest version: graalpy-23.1 + - os: macos-latest + version: 3.12 + - os: macos-13 + version: 3.12 - os: ubuntu-latest version: graalpy-24.0 - os: ubuntu-latest @@ -42,13 +45,16 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.version }} + cache: 'pip' + cache-dependency-path: | + python/requirements.txt + c/requirements.txt - name: Run tests run: make pytest LINT=false javascript: strategy: - fail-fast: false matrix: version: [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22] os: [ubuntu-latest, windows-latest, macos-latest] @@ -95,6 +101,8 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.version }} + cache: 'npm' + cache-dependency-path: 'javascript/package-lock.json' - name: Run tests run: make jstest @@ -120,6 +128,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.10" + cache-dependency-path: c/requirements.txt # - name: Setup Cpp ${{ matrix.compiler }} # uses: aminya/setup-cpp@v1