Skip to content

Improve tooling

Improve tooling #157

Workflow file for this run

name: Python CI
on:
push:
branches: [ master ]
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
concurrency:
group: ci-check-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.draft != true
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: dev-requirements.txt
- name: Install dependencies
run: |
python -m pip --quiet --no-input install --upgrade pip wheel
pip install -r dev-requirements.txt
- run: "pip install pre-commit"
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: "Run pre-commit"
run: pre-commit run --show-diff-on-failure --color=always --hook-stage push
- name: Install
run: |
./setup.py install --skip-build
- name: Coveralls
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}