Skip to content

Commit

Permalink
integrate linter and typecheck, use github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Jan 26, 2024
1 parent 57d4f73 commit 230db0d
Show file tree
Hide file tree
Showing 99 changed files with 7,730 additions and 7,457 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install tox
pip install -r requirements.txt
- name: Run tests
run: pip install .

linters:
runs-on: ubuntu-latest
container:
image: cimg/python:3.8

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: pip install tox

- name: Run linters
run: tox -e linters


typecheck:
runs-on: ubuntu-latest
container:
image: cimg/python:3.8

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: pip install tox

- name: Run typecheck
run: tox -e typecheck
Loading

0 comments on commit 230db0d

Please sign in to comment.