Skip to content

Merge pull request #17 from azavea/tt/15/github-actions #12

Merge pull request #17 from azavea/tt/15/github-actions

Merge pull request #17 from azavea/tt/15/github-actions #12

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
pull_request:
jobs:
lint:
name: Lint (Python 3.12)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: |
setup.py
setup.cfg
- name: Install linters
run: |
python -m pip install --upgrade pip
python -m pip install black flake8
- name: Lint (flake8)
run: flake8 .
- name: Format check (black)
run: black --check .
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
setup.py
setup.cfg
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e '.[test]'
- name: Run tests
run: python -m unittest