-
Notifications
You must be signed in to change notification settings - Fork 74
44 lines (40 loc) · 1.24 KB
/
commit-ofxtools.yml
File metadata and controls
44 lines (40 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# - name: Cache pip
# uses: actions/cache@v2
# with:
# path: ~/.cache/pip # This path is specific to Ubuntu
# # Look to see if there is a cache hit for the corresponding requirements file
# key: ${{ runner.os }}-pip-${{ hashFiles('requirements-development.txt') }}
# restore-keys: |
# ${{ runner.os }}-pip-
# ${{ runner.os }}-
- name: Install dependencies
run: pip install -r requirements-development.txt
- name: Standardize code formatting with black
run: black --check .
- name: Static analysis with mypy
run: mypy ofxtools tests
- name: Run tests
run: pytest --cov-report lcov:coverage.lcov --cov=ofxtools tests/
- run: find .
- name: Coveralls
uses: coverallsapp/github-action@v1
with:
path-to-lcov: coverage.lcov