Browse Source

tweak python install

Glen 7 months ago
parent
commit
6b61fc6660
1 changed files with 10 additions and 0 deletions
  1. 10 0
      .github/workflows/build_and_test.yml

+ 10 - 0
.github/workflows/build_and_test.yml

@@ -23,6 +23,16 @@ jobs:
     steps:
       - uses: actions/checkout@v4
 
+      - name: Set up Python
+        uses: actions/setup-python@v5
+        with:
+          python-version: ${{ env.PYTHON_VERSION }}
+          cache: 'pip'  # Enable pip caching
+          cache-dependency-path: |
+            setup.py
+            pyproject.toml
+          user-cache-path: ${{ github.workspace }}/.cache/python
+
       - name: Install dependencies
         run: |
           python -m venv env