Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 authored Aug 3, 2023
1 parent 0950cda commit daa2bc2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
- push
- workflow_dispatch

jobs:
test:
runs-on: ubuntu-latest
name: Test with Python ${{ matrix.python }}
strategy:
matrix:
python: ['3.7' , '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: setup test environment
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: install pip
run:
python -m pip install --upgrade pip wheel
- name: install package
run:
python -m pip install .[dev]
- name: test
run:
python -m unittest discover --verbose --start-directory tests/
- name: lint
run:
flake8
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@
],
extras_require={
'dev': [
# Linting
'flake8',
'pep8-naming',
# Test code
'requests',
'pypdf',
]
},
classifiers=[
Expand Down

0 comments on commit daa2bc2

Please sign in to comment.