Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Oct 11, 2023
1 parent d89fc95 commit 4d1489f
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 9 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run Tests

on:
push:
branches: ['*']
pull_request:
branches: ['*']

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]

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 packages
run: |
python -m pip install --upgrade pip
pip install '.[testing]'
- name: Run mypy
run: |
mypy --install-types --non-interactive ./calcurse_load ./gcal_index
- name: Run pytest
run: |
pytest
- name: Run flake8
run: |
flake8 ./autotui ./gcal_index
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,3 @@ As another example, to use it with the gcal extension, you could also provide th
```bash
python3 -m calcurse_load --pre-load calcurse_load.ext.gcal.gcal_ext
```

1 change: 0 additions & 1 deletion gcal_index/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

15 changes: 8 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ author = Sean Breckenridge
author_email = "seanbrecke@gmail.com"
license = MIT
license_files = LICENSE
keywords = calendar todo google
classifiers =
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
Expand All @@ -18,21 +17,18 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
keywords = calendar todo google

[options]
packages = find:
install_requires =
click
cssselect
gcsa>=0.4.0
lxml
python_requires = >=3.8
include_package_data = True
packages = find:

[options.entry_points]
console_scripts =
calcurse_load = calcurse_load.__main__:cli
gcal_index = gcal_index.__main__:main

[options.packages.find]
exclude =
Expand All @@ -42,6 +38,11 @@ include =
calcurse_load.*
gcal_index

[options.entry_points]
console_scripts =
calcurse_load = calcurse_load.__main__:cli
gcal_index = gcal_index.__main__:main

[options.extras_require]
testing =
flake8
Expand Down

0 comments on commit 4d1489f

Please sign in to comment.