Spaces:
Runtime error
Runtime error
Commit
·
21acbea
0
Parent(s):
First commit
Browse files- .github/workflows/tests.yaml +23 -0
- README.md +1 -0
- pyproject.toml +20 -0
- requirements.txt +3 -0
.github/workflows/tests.yaml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Tests
|
| 2 |
+
|
| 3 |
+
on: [push, pull_request]
|
| 4 |
+
|
| 5 |
+
jobs:
|
| 6 |
+
tests:
|
| 7 |
+
runs-on: ubuntu-latest
|
| 8 |
+
steps:
|
| 9 |
+
- name: Check out repository code
|
| 10 |
+
uses: actions/checkout@v3
|
| 11 |
+
- name: black linter
|
| 12 |
+
uses: psf/black@stable
|
| 13 |
+
with:
|
| 14 |
+
options: "--check --diff --line-length 120"
|
| 15 |
+
- name: isort
|
| 16 |
+
run: |
|
| 17 |
+
pip install isort
|
| 18 |
+
isort --profile black --check-only .
|
| 19 |
+
- name: unit tests
|
| 20 |
+
run: |
|
| 21 |
+
python3 -m pip install --upgrade pip
|
| 22 |
+
pip install -e .
|
| 23 |
+
# pytest
|
README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
# TODO
|
pyproject.toml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build-system]
|
| 2 |
+
requires = ["setuptools", "setuptools-scm"]
|
| 3 |
+
build-backend = "setuptools.build_meta"
|
| 4 |
+
|
| 5 |
+
[project]
|
| 6 |
+
name = "mila-cluster-chatbot"
|
| 7 |
+
version = "0.0.1"
|
| 8 |
+
description = "Chatbot to answer Mila cluster questions"
|
| 9 |
+
readme = "README.md"
|
| 10 |
+
requires-python = ">=3.10"
|
| 11 |
+
dynamic = ["dependencies"]
|
| 12 |
+
|
| 13 |
+
[tool.setuptools.dynamic]
|
| 14 |
+
dependencies = {file = ["requirements.txt"]}
|
| 15 |
+
|
| 16 |
+
[tool.isort]
|
| 17 |
+
profile = "black"
|
| 18 |
+
|
| 19 |
+
[tool.black]
|
| 20 |
+
line-length = 120
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pandas
|
| 2 |
+
openai
|
| 3 |
+
numpy
|