Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
Squashed commits
Browse files Browse the repository at this point in the history
  • Loading branch information
bovem committed Oct 13, 2022
0 parents commit 7892648
Show file tree
Hide file tree
Showing 171 changed files with 24,001 additions and 0 deletions.
323 changes: 323 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,323 @@
## Python CircleCI 2.0 configuration file
##
## Check https://circleci.com/docs/2.0/language-python/ for more details
##

version: 2
jobs:
build-py36:
docker:
- image: circleci/python:3.6

steps:
- checkout
- run:
name: install hamilton dependencies
command: |
sudo apt install graphviz
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -r requirements-test.txt
pip install -r requirements.txt
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest --cov=hamilton tests/ --ignore tests/integrations
build-py37:
docker:
- image: circleci/python:3.7

steps:
- checkout
- run:
name: install hamilton dependencies
command: |
sudo apt install graphviz
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -r requirements-test.txt
pip install -r requirements.txt
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest --cov=hamilton tests/ --ignore tests/integrations
build-py38:
docker:
- image: circleci/python:3.8

steps:
- checkout
- run:
name: install hamilton dependencies
command: |
sudo apt install graphviz
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -r requirements-test.txt
pip install -r requirements.txt
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest --cov=hamilton tests/ --ignore tests/integrations
build-py39:
docker:
- image: circleci/python:3.9

steps:
- checkout
- run:
name: install hamilton dependencies
command: |
sudo apt install graphviz
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -r requirements-test.txt
pip install -r requirements.txt
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest --cov=hamilton tests/ --ignore tests/integrations
pre-commit:
docker:
- image: circleci/python:3.7
steps:
- checkout
- run:
name: run pre-commit hooks
command: |
pip install pre-commit
pre-commit run --all-files
dask-py36:
docker:
- image: circleci/python:3.6

steps:
- checkout
- run:
name: install hamilton dependencies + dask
command: |
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -r requirements-test.txt
pip install -e ".[dask]"
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest graph_adapter_tests/h_dask
dask-py37:
docker:
- image: circleci/python:3.7

steps:
- checkout
- run:
name: install hamilton dependencies + dask
command: |
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -r requirements-test.txt
pip install -e ".[dask]"
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest graph_adapter_tests/h_dask
ray-py37:
docker:
- image: circleci/python:3.7

steps:
- checkout
- run:
name: install hamilton dependencies + ray
command: |
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -r requirements-test.txt
pip install -e ".[ray]"
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest graph_adapter_tests/h_ray
spark-py38:
docker:
- image: cimg/openjdk:14.0 # need java on it

steps:
- checkout
- run:
name: install hamilton dependencies + spark
command: |
# venv & pip weren't installed -- so have to do this hacky stuff
sudo apt-get update
sudo apt-get install aptitude
sudo aptitude install python3.8-venv -y
python3.8 -m venv venv
. venv/bin/activate
python3.8 --version
pip3.8 --version
pip3.8 install -r requirements-test.txt
pip3.8 install -e ".[pyspark]" # note bdist will error, but things install fine enough to run!
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest graph_adapter_tests/h_spark
integrations-py36:
docker:
- image: circleci/python:3.6
steps:
- checkout
- run:
name: install all python dependencies for integrations
command: |
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -e .[pandera] # TODO -- add more as we add more integrations
pip install -r requirements-test.txt
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest tests/integrations
integrations-py37:
docker:
- image: circleci/python:3.7
steps:
- checkout
- run:
name: install all python dependencies for integrations
command: |
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -e .[pandera] # TODO -- add more as we add more integrations
pip install -r requirements-test.txt
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest tests/integrations
integrations-py38:
docker:
- image: circleci/python:3.8
steps:
- checkout
- run:
name: install all python dependencies for integrations
command: |
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -e .[pandera] # TODO -- add more as we add more integrations
pip install -r requirements-test.txt
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest tests/integrations
integrations-py39:
docker:
- image: circleci/python:3.9
steps:
- checkout
- run:
name: install all python dependencies for integrations
command: |
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -e .[pandera] # TODO -- add more as we add more integrations
pip install -r requirements-test.txt
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest tests/integrations
asyncio-py39:
docker:
- image: circleci/python:3.9
steps:
- checkout
- run:
name: install hamilton dependencies + testing dependencies
command: |
python -m venv venv || virtualenv venv
. venv/bin/activate
python --version
pip --version
pip install -e .
pip install -r graph_adapter_tests/h_async/requirements-test.txt
# run tests!
- run:
name: run tests
command: |
. venv/bin/activate
python -m pytest graph_adapter_tests/h_async
workflows:
version: 2
unit-test-workflow:
jobs:
- build-py36
- build-py37
- build-py38
- build-py39
- pre-commit
- dask-py36
- dask-py37
- ray-py37
- spark-py38
- integrations-py36
- integrations-py37
- integrations-py38
- integrations-py39
- asyncio-py39
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# To use this file locally > git blame --ignore-revs-file .git-blame-ignore-revs
# reformats repo to use black
f273cd5725239cfc39ce05924e7384b3886b593b
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a bug report to help us improve Hamilton.
title: Bug Report
labels: triage
assignees: ''

---

Short description explaining the high-level reason for the new issue.

# Current behavior


## Stack Traces
(If applicable)

## Screenshots
(If applicable)


## Steps to replicate behavior
1.

## Library & System Information
E.g. python version, hamilton library version, linux, etc.


# Expected behavior


# Additional context
Add any other context about the problem here.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Stitch Fix Hamilton Open Source Slack Server
url: https://join.slack.com/t/hamilton-opensource/shared_invite/zt-1bjs72asx-wcUTgH7q7QX1igiQ5bbdcg
about: We are piloting using slack for chat. Feel free to try asking questions there first.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest a feature/enhancement for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
Loading

0 comments on commit 7892648

Please sign in to comment.