-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (28 loc) · 947 Bytes
/
test.yml
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
---
name: Test package
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: sudo apt install -y build-essential libpoppler-cpp-dev pkg-config python3-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 mypy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: flake8 --per-file-ignores="__init__.py:F401" bbva2pandas
- name: Lint with mypy
run: mypy bbva2pandas
- name: Test with unittest
run: python3 -m unittest discover tests