Skip to content

Commit 337284c

Browse files
author
Kye
committed
first
0 parents  commit 337284c

22 files changed

+624
-0
lines changed

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: [kyegomez]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: #Nothing

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a detailed report on the bug and it's root cause. Conduct root cause error analysis
4+
title: "[BUG] "
5+
labels: bug
6+
assignees: kyegomez
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is and what the main root cause error is. Test very thoroughly before submitting.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Additional context**
27+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: 'kyegomez'
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- Thank you for contributing to Zeta!
2+
3+
Replace this comment with:
4+
- Description: a description of the change,
5+
- Issue: the issue # it fixes (if applicable),
6+
- Dependencies: any dependencies required for this change,
7+
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
8+
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
9+
10+
If you're adding a new integration, please include:
11+
1. a test for the integration, preferably unit tests that do not rely on network access,
12+
2. an example notebook showing its use.
13+
14+
Maintainer responsibilities:
15+
- nn / Misc / if you don't know who to tag: [email protected]
16+
- tokenizers: [email protected]
17+
- training / Prompts: [email protected]
18+
19+
20+
If no one reviews your PR within a few days, feel free to [email protected]
21+
22+
See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/kyegomez/zeta

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
9+
10+
- package-ecosystem: "pip"
11+
directory: "/"
12+
schedule:
13+
interval: "weekly"
14+

.github/workflows/docs.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Docs WorkFlow
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
- develop
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: 3.x
17+
- run: pip install mkdocs-material
18+
- run: pip install "mkdocstrings[python]"
19+
- run: mkdocs gh-deploy --force

.github/workflows/label.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This workflow will triage pull requests and apply a label based on the
2+
# paths that are modified in the pull request.
3+
#
4+
# To use this workflow, you will need to set up a .github/labeler.yml
5+
# file with configuration. For more information, see:
6+
# https://github.com/actions/labeler
7+
8+
name: Labeler
9+
on: [pull_request_target]
10+
11+
jobs:
12+
label:
13+
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
19+
steps:
20+
- uses: actions/labeler@v4
21+
with:
22+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/publish.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Supervision Releases to PyPi
2+
on:
3+
push:
4+
tags:
5+
- '[0-9]+.[0-9]+[0-9]+.[0-9]'
6+
- '[0-9]+.[0-9]+[0-9]+.[0-9]'
7+
- '[0-9]+.[0-9]+[0-9]+.[0-9]'
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: [3.8]
18+
steps:
19+
- name: 🛎️ Checkout
20+
uses: actions/checkout@v3
21+
with:
22+
ref: ${{ github.head_ref }}
23+
- name: 🐍 Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: 🏗️ Build source and wheel distributions
29+
run: |
30+
python -m pip install --upgrade build twine
31+
python -m build
32+
twine check --strict dist/*
33+
- name: 🚀 Publish to PyPi
34+
uses: pypa/gh-action-pypi-publish@release/v1
35+
with:
36+
user: ${{ secrets.PYPI_USERNAME }}
37+
password: ${{ secrets.PYPI_PASSWORD }}
38+
- name: 🚀 Publish to Test-PyPi
39+
uses: pypa/gh-action-pypi-publish@release/v1
40+
with:
41+
repository-url: https://test.pypi.org/legacy/
42+
user: ${{ secrets.PYPI_TEST_USERNAME }}
43+
password: ${{ secrets.PYPI_TEST_PASSWORD }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: readthedocs/actions
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
paths:
7+
- "docs/**"
8+
9+
permissions:
10+
pull-requests: write
11+
12+
jobs:
13+
pull-request-links:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: readthedocs/actions/preview@v1
17+
with:
18+
project-slug: zeta

.github/workflows/pylint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Pylint
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.8", "3.9", "3.10"]
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install pylint
21+
- name: Analysing the code with pylint
22+
run: |
23+
pylint $(git ls-files '*.py')

.github/workflows/python-publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
name: Upload Python Package
3+
4+
on:
5+
release:
6+
types: [published]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
deploy:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: '3.x'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install build
26+
- name: Build package
27+
run: python -m build
28+
- name: Publish package
29+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
30+
with:
31+
user: __token__
32+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/stale.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: Mark stale issues and pull requests
7+
8+
on:
9+
schedule:
10+
- cron: '26 12 * * *'
11+
12+
jobs:
13+
stale:
14+
15+
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write
18+
pull-requests: write
19+
20+
steps:
21+
- uses: actions/stale@v5
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
stale-issue-message: 'Stale issue message'
25+
stale-pr-message: 'Stale pull request message'
26+
stale-issue-label: 'no-issue-activity'
27+
stale-pr-label: 'no-pr-activity'

.github/workflows/test.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
env:
10+
POETRY_VERSION: "1.4.2"
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version:
18+
- "3.8"
19+
- "3.9"
20+
- "3.10"
21+
- "3.11"
22+
test_type:
23+
- "core"
24+
- "extended"
25+
name: Python ${{ matrix.python-version }} ${{ matrix.test_type }}
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: "./.github/actions/poetry_setup"
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
poetry-version: "1.4.2"
33+
cache-key: ${{ matrix.test_type }}
34+
install-command: |
35+
if [ "${{ matrix.test_type }}" == "core" ]; then
36+
echo "Running core tests, installing dependencies with poetry..."
37+
poetry install
38+
else
39+
echo "Running extended tests, installing dependencies with poetry..."
40+
poetry install -E extended_testing
41+
fi
42+
- name: Run ${{matrix.test_type}} tests
43+
run: |
44+
if [ "${{ matrix.test_type }}" == "core" ]; then
45+
make test
46+
else
47+
make extended_tests
48+
fi
49+
shell: bash

.github/workflows/unit-test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Setup Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.10'
22+
23+
- name: Install dependencies
24+
run: pip install -r requirements.txt
25+
26+
- name: Run Python unit tests
27+
run: python3 -m unittest tests/zeta
28+
29+
- name: Verify that the Docker image for the action builds
30+
run: docker build . --file Dockerfile
31+
32+
- name: Integration test 1
33+
uses: ./
34+
with:
35+
input-one: something
36+
input-two: true
37+
38+
- name: Integration test 2
39+
uses: ./
40+
with:
41+
input-one: something else
42+
input-two: false
43+
44+
- name: Verify integration test results
45+
run: python3 -m unittest unittesting/zeta

0 commit comments

Comments
 (0)