Skip to content

Commit 1745329

Browse files
authored
Merge pull request #52 from DataFog/v4.0.0-beta.1
V4.0.0
2 parents 492ab5c + ff5e925 commit 1745329

39 files changed

+2289
-116
lines changed

.github/workflows/beta-cicd.yml

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: beta-cicd-setup-and-test
2+
3+
on:
4+
push:
5+
branches:
6+
- "v*.0.0-beta.*"
7+
pull_request:
8+
branches:
9+
- "v*.0.0-beta.*"
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out repo
16+
uses: actions/checkout@v4
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.10"
21+
- name: Install pre-commit
22+
run: pip install pre-commit
23+
- name: Run pre-commit
24+
run: pre-commit run --all-files
25+
26+
build:
27+
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
python-version: ["3.10", "3.11", "3.12"]
31+
steps:
32+
- name: Check out repo
33+
uses: actions/checkout@v4
34+
- name: Free Disk Space (Ubuntu)
35+
uses: jlumbroso/free-disk-space@main
36+
with:
37+
# this might remove tools that are actually needed,
38+
# if set to "true" but frees about 6 GB
39+
tool-cache: false
40+
# all of these default to true, but feel free to set to
41+
# "false" if necessary for your workflow
42+
android: true
43+
dotnet: true
44+
haskell: true
45+
large-packages: true
46+
docker-images: true
47+
swap-storage: true
48+
- name: Set up Python
49+
uses: actions/setup-python@v4
50+
with:
51+
python-version: ${{ matrix.python-version }}
52+
- name: Install Tesseract OCR
53+
run: |
54+
sudo apt-get update
55+
sudo apt-get install -y software-properties-common
56+
sudo add-apt-repository -y ppa:alex-p/tesseract-ocr-devel
57+
sudo apt-get update
58+
sudo apt-get install -y tesseract-ocr libtesseract-dev
59+
tesseract --version
60+
dpkg -l | grep tesseract
61+
- name: Verify Tesseract Installation
62+
run: |
63+
which tesseract
64+
tesseract --list-langs
65+
- name: Install Dependencies
66+
run: |
67+
pip install -U pip
68+
pip install --no-cache-dir -e .
69+
pip install --no-cache-dir tox just pre-commit
70+
- name: Free up disk space
71+
run: |
72+
sudo apt-get clean
73+
- name: Run Tests with tox
74+
run: tox -- --cov datafog --cov-report xml --cov-report term -v -s --cov-report=term-missing
75+
- name: Submit to Codecov
76+
uses: codecov/codecov-action@v3
77+
with:
78+
token: ${{ secrets.CODECOV_TOKEN }}
79+
files: ./coverage.xml
80+
flags: unittests
81+
name: codecov-umbrella

.github/workflows/feature-cicd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
strategy:
2929
matrix:
30-
python-version: ["3.10"]
30+
python-version: ["3.10", "3.11", "3.12"]
3131
steps:
3232
- name: Check out repo
3333
uses: actions/checkout@v4

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ node_modules/
3232
.DS_Store
3333
.venv
3434
examples/venv/
35-
error_log.txt
35+
error_log.txt
36+
docs/*
37+
!docs/*.rst
38+
!docs/conf.py
39+
scratch.py

.readthedocs.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the OS, Python version and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.12"
13+
# You can also specify other tool versions:
14+
# nodejs: "19"
15+
# rust: "1.64"
16+
# golang: "1.19"
17+
18+
# Build documentation in the "docs/" directory with Sphinx
19+
sphinx:
20+
configuration: docs/conf.py
21+
# Optionally build your docs in additional formats such as PDF and ePub
22+
# formats:
23+
# - pdf
24+
# - epub
25+
26+
# Optional but recommended, declare the Python requirements required
27+
# to build your documentation
28+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
29+
# python:
30+
# install:
31+
# - requirements: docs/requirements.txt

CONTRIBUTING.md

+4
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ project [license](LICENSE) and affirming that you either own copyright
2323
(automatic for most individuals) or are authorized to distribute under
2424
the project license (e.g., in case your employer retains copyright on
2525
your work).
26+
27+
### Legal Notice
28+
29+
When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.

0 commit comments

Comments
 (0)