Skip to content

Commit

Permalink
GitHub Actions enhancements (#289)
Browse files Browse the repository at this point in the history
* GitHub Actions: Use built-in caching provided by setup-python

* GitHub Actions: add python 3.11 to testing matrix
  • Loading branch information
joachimschmidt557 committed May 13, 2023
1 parent a8cbcfb commit 143638b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,15 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-{{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}
${{ runner.os }}-pip-
${{ runner.os }}-
cache: 'pip'

- name: Install dependencies
run: |
Expand Down

0 comments on commit 143638b

Please sign in to comment.