Fix date issues when user inputs: date out of bound or date_to earlier than date_from #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build and test senaite.databox | |
on: | |
- push | |
- pull_request | |
env: | |
PLONE_VERSION: "5.2" | |
jobs: | |
build-and-test: | |
runs-on: 'ubuntu-20.04' | |
container: | |
image: python:2.7.18-buster | |
steps: | |
- uses: actions/checkout@v3 | |
- name: cache eggs | |
uses: actions/cache@v3 | |
with: | |
key: eggs-cache-${{ hashFiles('buildout.cfg', 'requirements.txt') }} | |
path: | | |
eggs/ | |
- name: install | |
run: | | |
pip install virtualenv | |
virtualenv -p `which python` . | |
bin/pip install --upgrade pip | |
bin/pip install -r requirements.txt | |
bin/buildout -N -t 3 annotate | |
bin/buildout -N -t 3 | |
- name: lint | |
run: | | |
bin/pip install flake8 | |
bin/flake8 --config ci_flake8.cfg src/senaite/ | |
- name: test | |
run: | | |
bin/test -s senaite.databox.tests |