Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .env.api.example

This file was deleted.

20 changes: 0 additions & 20 deletions .env.miner.example

This file was deleted.

31 changes: 0 additions & 31 deletions .env.validator.example

This file was deleted.

41 changes: 28 additions & 13 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Prompting CI/CD
name: Apex CI/CD

on:
pull_request:
Expand All @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -22,11 +22,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh

- name: Install dependencies
run: |
python -m pip install --upgrade pip
bash scripts/install.sh
poetry install --all-extras
source $HOME/.cargo/env
uv pip install '.[dev]' --system

- name: Set up Node.js
uses: actions/setup-node@v3
Expand All @@ -35,24 +37,37 @@ jobs:

- name: Debug Environment
run: |
poetry run python -V
poetry run which python
poetry env info
poetry run pip list
python -V
which python
pip list

# Style/format checks.
- name: Run Ruff (linter)
run: |
poetry run ruff check --diff .
ruff check --diff .

- name: Run Ruff (formatter)
run: |
poetry run ruff format --check --diff .
ruff format --check --diff .

- name: Run mypy for type checking
run: |
mypy .

- name: Test with pytest
run: |
# run tests in tests/ dir and only fail if there are failures or errors
poetry run pytest tests/ --verbose --failed-first --exitfirst --disable-warnings
pytest tests/ --verbose --failed-first --exitfirst --disable-warnings

# - name: Generate coverage report
# run: |
# pytest --cov=apex/ --cov-report=xml tests/
#
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage.xml
# fail_ci_if_error: true

- name: Cache pip
uses: actions/cache@v3
Expand Down
109 changes: 18 additions & 91 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
requirements.txt
**/*.ipynb
debug_rewards.jsonl
results.db*
sn13_db.db*
sn13.db*
avante_prompts/
*_cache
.geminiignore
config/*
!config/*.example
drafts/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
.DS_Store
**/.DS_Store

# Project-specific
results.db
*.npy
*.npz
prompting/storage/
validator_rewards.jsonl
test_validator_rewards.jsonl
uid_tracker.sqlite*

# C extensions
*.so
Expand Down Expand Up @@ -40,8 +51,6 @@ share/python-wheels/
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

Expand All @@ -64,26 +73,6 @@ coverage.xml
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/
Expand All @@ -95,43 +84,6 @@ target/
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.env.api
Expand All @@ -144,16 +96,6 @@ ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
Expand All @@ -169,22 +111,7 @@ dmypy.json
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# Repository-specific files.
AutoAWQ/
testing/
# data/*
plots/*
core
app.config.js
wandb
.idea/

# VS Code
.vscode
**/api_keys.json
weights.csv
past_websites.csv
timer_logs*
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.2
rev: v0.12.5
hooks:
- id: ruff
args: [--fix]
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
48 changes: 0 additions & 48 deletions CONTRIBUTING.md

This file was deleted.

4 changes: 0 additions & 4 deletions Makefile

This file was deleted.

Loading