Update python-app.yml #668
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Python Versions | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.13', '3.12', '3.9', '3.10', '3.11', '3.8'] | |
# env: | |
# PIP_NO_PYTHON_VERSION_WARNING: 1 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Show pip cache directory | |
run: | | |
pip cache dir | |
- name: Set up Python ${{ matrix.python-version }} | |
# uses: actions/[email protected] | |
uses: priyagupta108/setup-python@issue-1034 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# cache: 'pip' | |
# cache-dependency-path: | |
# requirements/*.txt | |
- name: Cache pip dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/requirements.txt | |