Bump actions/setup-python from 4 to 5 #283
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
include: | |
- name: Tests | |
command: bin/tests | |
- name: Lint | |
command: bin/lint | |
runs-on: ubuntu-latest | |
name: ${{ matrix.name }} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: '.python-version' | |
cache: 'pip' | |
cache-dependency-path: | | |
requirements.txt | |
requirements/*.txt | |
- name: Install Python dependencies | |
run: | | |
pip install -U pip setuptools wheel | |
pip install -r requirements.txt --no-deps | |
- name: Run ${{ matrix.name }} | |
run: ${{ matrix.command }} |