-
Notifications
You must be signed in to change notification settings - Fork 14
27 lines (27 loc) · 824 Bytes
/
tests.yaml
File metadata and controls
27 lines (27 loc) · 824 Bytes
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
name: Unit Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests-python3:
runs-on: ubuntu-20.04 # this should probably get updated to a python 3.9+ image
steps:
- uses: actions/checkout@v2
- name: print python version
run: python3 --version
- name: install requirements
run: pip3 install -r requirements.txt
- name: run the tests
run: python3 tests.py
- name: verify type hints
run: mypy . --strict
- name: verify package install
run: python3 setup.py install --user
- name: verify we can import
run: python3 -c "from datemath import datemath; print(datemath('now-1d'))"
- name: verify our version
run: python3 -c "import datemath; print(datemath.__version__)"