Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Action Update: Bump actions/setup-python from 4 to 5 #87

Action Update: Bump actions/setup-python from 4 to 5

Action Update: Bump actions/setup-python from 4 to 5 #87

Workflow file for this run

name: Python Checking
on:
push:
branches:
- '**'
tags-ignore:
- '**'
paths:
- '**.py'
- ".github/workflows/lint.yml"
- "requirements.txt"
- "requirements-dev.txt"
pull_request:
branches:
- main
jobs:
Lint:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9, '3.10', '3.11', '3.12', 'pypy3.9', 'pypy3.10']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Linux Cache
uses: actions/cache@v3
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txts') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}
- name: MacOS Cache
uses: actions/cache@v3
if: startsWith(runner.os, 'macOS')
with:
path: ~/Library/Caches/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txts') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}
- name: Windows Cache
uses: actions/cache@v3
if: startsWith(runner.os, 'Windows')
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txts') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}
- name: Install Dependencies
run: |
pip install --upgrade pip wheel
pip install -r requirements-dev.txt
- name: Install self
run: pip install .
- name: Lint
run: make lint
- name: Test
run: make test
- name: Build
run: make check-dist
- name: Docs Check
run: make docs
- uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}-${{ matrix.python-version }}
path: |
dist/
docs/_build/html