Skip to content

Commit

Permalink
setup GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
baverman committed Mar 5, 2024
1 parent ed1dc26 commit eebb62e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[run]
source = sqlbind

[report]
fail_under = 100
42 changes: 42 additions & 0 deletions .github/workflows/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: sqlbind

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.6", "3.8", "3.12"]
steps:
- uses: actions/checkout@v4
- name: prepare
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: deps
run: |
pip install pytest coverage
- name: test
run: python -m coverage run -m pytest
- name: coverage
python -m coverage report -m
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: prepare
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: deps
run: pip install mypy==1.8.0
- name: mypy
run: mypy --strict sqlbind

0 comments on commit eebb62e

Please sign in to comment.