Skip to content

Update actions

Update actions #105

Workflow file for this run

name: Testing Python Package
on:
push:
pull_request:
schedule:
- cron: "0 12 * * 0"
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
# See: https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v4
# See: https://github.com/actions/setup-python
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# See: https://github.com/actions/cache
- name: Cache wheels
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests with pytest
run: |
pytest --verbose --color=yes
- name: Run linter with pylint
run: |
pylint shirokumas
- name: Run linter with flake8
run: |
flake8 .
- name: Run linter with isort
uses: isort/isort-action@master