forked from Datura-ai/cortex.t
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2717856
commit d718799
Showing
5 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: [main, develop] | ||
pull_request: | ||
branches: [main, develop] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: download wallets | ||
run: aws s3 sync s3://$WALLET_BUCKET ~/ | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_REGION: us-east-1 | ||
WALLET_BUCKET: ${{ secrets.WALLET_BUCKET }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade nox pip setuptools | ||
- name: Run tests | ||
run: nox -s test | ||
env: | ||
RICH_TRACEBACK: 0 | ||
CORTEXT_MINER_ADDITIONAL_WHITELIST_VALIDATOR_KEYS: ${{ secrets.VALIDATOR_KEY }} | ||
WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }} | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pathlib | ||
|
||
import nox | ||
|
||
REQUIREMENTS_TEST = [ | ||
"pytest==7.*", | ||
] | ||
|
||
|
||
def install_myself(session): | ||
"""Install from source.""" | ||
session.run('pip', 'install', '-e', '.') | ||
|
||
|
||
THIS_DIR = str(pathlib.Path(__file__).parent) | ||
|
||
|
||
@nox.session(reuse_venv=True) | ||
def test(session): | ||
install_myself(session) | ||
session.run('pip', 'install', *REQUIREMENTS_TEST) | ||
session.run('pytest', 'tests', '-rP', '-vv', *session.posargs, env={'RICH_TRACEBACK': '0', 'PYTHONPATH': THIS_DIR}) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters