chore(deps): update pre-commit hook asottile/pyupgrade to v3.8.0 #566
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: Python package | |
on: | |
push: | |
branches-ignore: | |
- renovate/** | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: | |
- '3.6' | |
- '3.7' | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/pip | |
~/.cache/pre-commit | |
key: ${{ runner.os }}-pip-test-${{ hashFiles('**/requirements*.txt') }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: pip install -r requirements-test.txt | |
- name: Compile | |
env: | |
CFLAGS: -Wall -Wextra -Wno-unused-parameter -Werror | |
run: python setup.py build | |
- name: Install | |
run: pip install . | |
- name: Test | |
run: pytest test_siphashc.py README.rst | |
- name: Benchmark | |
run: python benchmark.py |