Skip to content

Parse date when state was updated at #25

Parse date when state was updated at

Parse date when state was updated at #25

Workflow file for this run

name: Tests
on:
pull_request:
push:
tags-ignore:
- "**"
paths-ignore:
- '.devcontainer/**'
- '.github/**'
- 'examples/**'
- 'README.md'
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip" # caching pip dependencies
- name: Upgrade pip and setuptools
run: |
python -m pip install --upgrade pip
pip install setuptools --upgrade
- name: Run linter (black)
run: |
pip install black
black --check --verbose ./SICAR/
- name: Run interrogate
run: |
pip install interrogate
interrogate
- name: Install OS dependencies
run: |
sudo apt-get update
sudo apt-get -y install tesseract-ocr python3-opencv --no-install-recommends --no-upgrade --show-progress
- name: Install requirements
run: pip install --editable .[all]
- name: Run unit tests
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
coverage run --rcfile=pyproject.toml -m unittest SICAR/tests/unit/*.py SICAR/tests/unit/drivers/*.py
coverage report
coveralls
- name: Run integration tests
run: |
python -m unittest SICAR/tests/integration/*.py