diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3839e5fd9..a21c53a73 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.11'] name: Tests on ${{ matrix.python-version }} steps: - name: Setup python @@ -53,6 +53,21 @@ jobs: restore-keys: | fastf1-${{ matrix.python-version }} + - name: Cache multiple paths + uses: whywaita/actions-cache-s3@v2 + with: + path: ./test_cache + key: fastf1-${{ matrix.python-version }}-${{ hashFiles('*.*') }} + restore-keys: | + fastf1-${{ matrix.python-version }} + aws-s3-bucket: ${{ secrets.CLOUDFLARE_R2_BUCKET_NAME }} + aws-access-key-id: ${{ secrets.CLOUDFLARE_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.CLOUDFLARE_SECRET_ACCESS_KEY }} + # aws-region: us-east-1 # Optional + aws-endpoint: ${{ vars.CLOUDFLARE_API_ENDPOINT }} # Optional + aws-s3-bucket-endpoint: false # Optional + aws-s3-force-path-style: true # Optional + - name: Run tests run: | pytest -ra