Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: requirements.txt #114

Open
wants to merge 2,598 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2598 commits
Select commit Hold shift + click to select a range
5d7ead0
vali
Jan 29, 2024
3b13bef
vali
Jan 29, 2024
9ae6077
update
Jan 29, 2024
a371989
update
Jan 30, 2024
fa46ed9
add issue templates
steinerkelvin Jan 31, 2024
b644c0b
Merge pull request #86 from steinerkelvin/feat/add-issue-templates
salvivona Jan 31, 2024
f3af163
refactor for vali
Feb 1, 2024
1d53cf4
added bug support
Feb 1, 2024
801e5b2
add a dashboard for running modules
Feb 1, 2024
0520cb5
new module: PhotoMaker
laion01 Feb 1, 2024
49c913d
add a dashboard for running modules
Feb 1, 2024
8bd9cb0
update
Feb 3, 2024
a8d2223
subspace upgrade
Feb 5, 2024
d7e4a27
fixed stats
Feb 5, 2024
64d8789
upgraded
Feb 5, 2024
11112fd
update
Feb 7, 2024
4727837
Merge branch 'commune-ai:main' into main
laion01 Feb 7, 2024
b648072
PhotoMaker: readme
laion01 Feb 7, 2024
d22c4e5
update
Feb 8, 2024
2d7745d
Merge pull request #87 from c-spider/main
salvivona Feb 8, 2024
8977628
update
Feb 8, 2024
2fb6ae0
fix to subnets
Feb 8, 2024
df6b47d
update
Feb 8, 2024
e4ba189
wallet check
Feb 8, 2024
f69448b
wallet
Feb 8, 2024
2148446
fix
Feb 8, 2024
a2fd202
update
Feb 8, 2024
be5e9cb
update
Feb 8, 2024
b1c4ad4
[CLEANUPPP]
Feb 10, 2024
40a2204
[CLEANUP]
Feb 10, 2024
b05b9d0
additions
Feb 10, 2024
1217f8d
additions
Feb 10, 2024
1dc4aae
update
Feb 10, 2024
de0208c
update
Feb 11, 2024
d6220c6
PhotoMaker: Update
laion01 Feb 12, 2024
1b22def
converted commit
Feb 12, 2024
148fb99
PhotoMaker: hot fix
laion01 Feb 13, 2024
8ae2a3b
hot fix
laion01 Feb 13, 2024
748eb77
hot fix
laion01 Feb 13, 2024
5103fc1
testnet changes
Feb 14, 2024
876c9c6
wallet
Feb 14, 2024
60fe415
update
Feb 14, 2024
03cee91
subspace
salvivona Feb 14, 2024
220639d
serializer
salvivona Feb 14, 2024
a936a2c
fixed transfer
Feb 14, 2024
fbd54fe
subspace check_valis
Feb 14, 2024
1d8c19e
new
Feb 14, 2024
ca0b323
added more nodes
Feb 14, 2024
588216e
check_valis addition
Feb 14, 2024
e5f4028
subspace
Feb 16, 2024
367c39c
Remove comchat submodule
PawKanarek Feb 17, 2024
d6e9067
key encryption
Feb 17, 2024
3a0439a
jepa
Feb 18, 2024
fa3d6b2
key2stake
Feb 18, 2024
e742c24
Merge pull request #92 from kyegomez/main
salvivona Feb 18, 2024
f45bbb3
Merge pull request #93 from laion01/main
salvivona Feb 18, 2024
6d890c9
Merge branch 'main' into fbscrape
salvivona Feb 18, 2024
74de2c1
Merge pull request #71 from venustar1228/fbscrape
salvivona Feb 18, 2024
1e45794
hey
Feb 18, 2024
60c794c
adjusted vali dash
Feb 19, 2024
fdabffe
Merge branch 'commune-ai:main' into rm-comchat
PawKanarek Feb 19, 2024
d9f1bb7
[converted client http code to rust]
black-puppy Feb 19, 2024
a25b966
Translator: hot fix
laion01 Feb 19, 2024
b24cd63
key fixes
Feb 19, 2024
d287ec5
update
Feb 20, 2024
65404df
update
Feb 20, 2024
07c3f8d
update
Feb 20, 2024
a5f6ee5
Merge pull request #94 from PawKanarek/rm-comchat
salvivona Feb 20, 2024
0deb0d7
Merge pull request #95 from laion01/main
salvivona Feb 20, 2024
1dfe49d
Merge pull request #88 from wendellswa06/chore/wt_02012024/dashboard
salvivona Feb 20, 2024
213416b
Merge branch 'main' into main
salvivona Feb 20, 2024
9c48474
Merge pull request #80 from shahjab/main
salvivona Feb 20, 2024
5fae250
Merge pull request #84 from Supremesource/patch-1
salvivona Feb 20, 2024
6d281bf
refactor
Feb 23, 2024
be5eb9d
refactor
Feb 23, 2024
2a5605c
fix:server_http using rust
nevermore2a Feb 23, 2024
d767188
subspace additions
Feb 23, 2024
6d893ff
navigations
Feb 23, 2024
4cf1a8a
revo
Feb 23, 2024
e6a6107
key fix
Feb 23, 2024
f57d49e
the revo
Feb 23, 2024
5af1a9d
vali
Feb 24, 2024
d2bfe85
cli
Feb 24, 2024
c75d115
key
Feb 25, 2024
294b2da
subspace updates
Feb 25, 2024
444e54b
stats
Feb 25, 2024
2a627ff
folxer
Feb 26, 2024
bc4d8cf
vlai update
Feb 27, 2024
82c75f7
update
Feb 28, 2024
c666131
update
Feb 28, 2024
d145e2b
fixed tree cache
Feb 29, 2024
372fc23
wallet
Mar 4, 2024
d281c08
subspace
Mar 6, 2024
5fd9a81
x
Mar 6, 2024
c5a802e
add poetry
tommiful Mar 6, 2024
21b5986
Merge branch 'main' into poetry
tommiful Mar 6, 2024
bcb2a6c
add docker for poetry
tommiful Mar 7, 2024
d9df229
Merge branch 'poetry' of https://github.com/tommiful/commune into poetry
tommiful Mar 7, 2024
fc8e0eb
update docker-compose.yml file
tommiful Mar 7, 2024
bbd1917
add dockerfile
tommiful Mar 7, 2024
35ff20d
initial new docker development environment
coolrazor007 Mar 8, 2024
940a49b
commented out a few very heavy, only GPU related items
coolrazor007 Mar 8, 2024
8589c2a
WIP does not work, more of a reminder for a production PM2 docker min…
coolrazor007 Mar 8, 2024
25b83e9
vali updats
Mar 9, 2024
da580f7
vali
Mar 9, 2024
e6e9548
vali
Mar 10, 2024
714b896
storage
Mar 11, 2024
da240a6
vali changes
Mar 11, 2024
cd0d059
remote
Mar 11, 2024
a3e9eae
fix docker structure
tommiful Mar 12, 2024
679ea17
fix docker structure
tommiful Mar 12, 2024
e507efc
refactor: setup tools setting
tommiful Mar 12, 2024
a093dac
vali
Mar 12, 2024
4eebd4d
vali dash
Mar 13, 2024
ec32333
vali
Mar 13, 2024
d20e808
remote
Mar 13, 2024
13a4295
fixed
Mar 13, 2024
d92df94
Merge pull request #98 from tommiful/poetry
salvivona Mar 14, 2024
69d08d8
add: create virtual env for poetry
tommiful Mar 14, 2024
851af32
docker fixes
Mar 14, 2024
5baaecf
fix: structure
tommiful Mar 14, 2024
28d4eb5
add: poetry manager
tommiful Mar 14, 2024
dc0750e
Merge branch 'main' into poetry
tommiful Mar 14, 2024
25f13d8
poetry
Mar 14, 2024
f250369
Merge pull request #99 from tommiful/poetry
salvivona Mar 14, 2024
fcb112f
update Docker approach
coolrazor007 Mar 14, 2024
68dde4a
Merge branch 'main' of https://github.com/commune-ai/commune
coolrazor007 Mar 14, 2024
1a5d0ee
docker cleanup
Mar 15, 2024
e8f0292
Docker works now
coolrazor007 Mar 15, 2024
d2f0b6e
pipeline for tests for PRs and main pushes
coolrazor007 Mar 15, 2024
cc5e603
sudo priv's
coolrazor007 Mar 15, 2024
87cdb94
disable 'c sync' test, takes too long
coolrazor007 Mar 15, 2024
70026cc
test commit to test pipeline. intentionally break the code
coolrazor007 Mar 15, 2024
9a3800d
add docker builds
coolrazor007 Mar 15, 2024
bd82c80
remove intentional failing test
coolrazor007 Mar 15, 2024
4ea00e6
adding submodule support in the git pulls
coolrazor007 Mar 15, 2024
5a58c72
required for c stats
coolrazor007 Mar 15, 2024
0b7c8e4
docker
Mar 15, 2024
0f675d8
remove useless git submodule for reasons
coolrazor007 Mar 15, 2024
12dc845
tag issue
coolrazor007 Mar 15, 2024
9106fc8
add more debugging to figure out tag issue
coolrazor007 Mar 15, 2024
9663b7d
forgot to add needs to get the "Variabls" output
coolrazor007 Mar 15, 2024
d608092
force GHCR login
coolrazor007 Mar 15, 2024
b3e2eb4
dynamically grab the Github owner
coolrazor007 Mar 15, 2024
2bf7079
this shouldn't fix the issue, but it was the only change
coolrazor007 Mar 15, 2024
d683ffc
c balance with retry because RPC issues
coolrazor007 Mar 15, 2024
9d4ffa6
convert to lower case for image
coolrazor007 Mar 15, 2024
671a7aa
more change case tries
coolrazor007 Mar 15, 2024
5726547
trying the env var in a more typical way
coolrazor007 Mar 15, 2024
f156e47
why does GH make env vars so hard?
coolrazor007 Mar 15, 2024
cff828f
oopsy, forgot =
coolrazor007 Mar 15, 2024
14120b9
let's go env var's lets go
coolrazor007 Mar 15, 2024
38fd203
release pipeline
coolrazor007 Mar 15, 2024
e1648ac
subspace fixes
Mar 15, 2024
015957d
docker
Mar 16, 2024
e633b90
streamlit
Mar 16, 2024
606eb2c
module and vali fixes
Mar 16, 2024
faaeb14
kill ports script
Mar 16, 2024
795ba60
chain
Mar 16, 2024
0037bb9
subspace
Mar 16, 2024
22818ff
fam
Mar 17, 2024
d68d69c
vali updates
Mar 18, 2024
7988440
virtual
Mar 18, 2024
9c3cdf0
vali update
Mar 18, 2024
9086bc5
more debug and adding latest tag
coolrazor007 Mar 18, 2024
9d90dd0
Merge branch 'main' of https://github.com/commune-ai/commune
coolrazor007 Mar 18, 2024
71b30f9
vlai
Mar 19, 2024
e977130
merged with validator updates
Mar 19, 2024
e790380
vali block staleness
Mar 19, 2024
be7c6c3
Merge branch 'main' of https://github.com/commune-ai/commune
coolrazor007 Mar 19, 2024
49cfc03
voting limits with stake weighting during vote
Mar 19, 2024
001c81c
Merge branch 'main' of https://github.com/commune-ai/commune
coolrazor007 Mar 19, 2024
b87adbe
Merge branch 'main' of https://github.com/commune-ai/commune
coolrazor007 Mar 19, 2024
f6a1c23
quick fix for vali
coolrazor007 Mar 19, 2024
293d8e3
fixed up some tests in pipelines
coolrazor007 Mar 19, 2024
0b69ec4
reverse dockerfiles to match Commune docs
coolrazor007 Mar 20, 2024
6fa0afd
remove global_params test
coolrazor007 Mar 20, 2024
de2ca6d
fixing tests
coolrazor007 Mar 20, 2024
0ad9da2
vote loop update
coolrazor007 Mar 20, 2024
3bccfba
vali
Mar 20, 2024
3a5c9b5
updated docs
Mar 20, 2024
75e01a7
Merge branch 'main' of https://github.com/commune-ai/commune
coolrazor007 Mar 20, 2024
6795997
Merge pull request #101 from Agent-Artificial/main
salvivona Mar 20, 2024
ce97ffe
vali
Mar 20, 2024
c01ef2d
fixed server
Mar 20, 2024
b69d1e8
vali
Mar 20, 2024
e7ced39
added onfinality bootnode
mikespook Apr 21, 2024
aed0ef7
subspace
Apr 23, 2024
ac1e374
core
Apr 23, 2024
9c1ee65
subspace
Apr 23, 2024
3319388
main dev
Apr 23, 2024
83942e0
subspace
Apr 23, 2024
a75216b
d
Apr 23, 2024
5f98b64
cleaned
Apr 23, 2024
995b1dc
subspace
Apr 23, 2024
cfb5a5e
key_tests
Apr 23, 2024
fbb60f1
server
Apr 23, 2024
5de23ab
added docs
Apr 23, 2024
96f81b7
added docs
Apr 23, 2024
98f74cf
docs n more
Apr 24, 2024
eb831d1
fix tree
Apr 24, 2024
29427ce
fixed registration address and update
Apr 24, 2024
31e7320
subspace query refactoring
Apr 24, 2024
584f386
fix cli DeprecationWarning
salmanshah1d Apr 25, 2024
f7b0a43
docunentation refactoring
Apr 26, 2024
1d1a144
remote changes and script improvement to docker
Apr 26, 2024
8772dcd
dockerfile update to pip install
Apr 26, 2024
0e0a218
serializer
Apr 26, 2024
975e7fd
simplified
Apr 26, 2024
b0e0116
server2key
Apr 26, 2024
c6fb40a
Merge pull request #111 from salmanshah1d/main
salvivona Apr 27, 2024
11a59ff
readdded bin
Apr 28, 2024
f3d9526
subspace
Apr 29, 2024
045caeb
Merge pull request #110 from mikespook/main
steinerkelvin Apr 30, 2024
7420d0b
documentation updates
May 1, 2024
5a9ce78
documentation updates
May 1, 2024
009a1d0
update
May 1, 2024
22e51b7
subnet_params update
May 1, 2024
b7abac1
subspace
May 1, 2024
4b6b991
subspace
May 1, 2024
d39c627
update
May 2, 2024
14c2234
update
May 2, 2024
8310f74
sandbox and subsapce
May 2, 2024
7b38bec
namespace
May 2, 2024
2c87818
refactor
May 3, 2024
b8473d5
update api.py
Fabino777 May 4, 2024
788211e
cmd
May 4, 2024
ff08d41
rm
May 4, 2024
b04c27c
refactoring
May 7, 2024
0438dae
update
May 9, 2024
7ccc55a
diffie helman intro
May 10, 2024
b725393
Merge pull request #112 from Fabino777/main
salvivona May 13, 2024
9244aa1
the refactor and not requiring the tree through infering local object…
May 14, 2024
7ed8ee7
resolution in simple2path for merging file names into simple model/op…
May 14, 2024
08630d0
refactor with docs
May 15, 2024
5e0ff73
subnet
May 15, 2024
2e0c34d
added pytests
May 15, 2024
d9b3f86
subnet
May 15, 2024
5839ce6
jey
May 15, 2024
0052287
removed
May 15, 2024
161ceb1
vali
May 15, 2024
09af24d
history in the making
May 17, 2024
d94ae75
validator updates
May 17, 2024
fe8c1e6
tests
May 17, 2024
b3ee853
update
May 17, 2024
8892e64
removed redundant volume mounts
May 18, 2024
eb88ea5
docker compose
May 18, 2024
4e60d8b
docker path reoslution fixed
May 18, 2024
6c7ebc6
docker compose update
May 18, 2024
b5a0a9d
fix: requirements.txt
yk909 May 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./data
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

#### Describe the bug

A clear and concise description of what the bug is.

#### To Reproduce

#### Steps to reproduce the behavior

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

#### Expected behavior

A clear and concise description of what you expected to happen.

#### Screenshots

If applicable, add screenshots to help explain your problem.

#### Specs
- OS: [e.g. Ubuntu 22.04, Windows 11, macOS 14]
- Package Version: [e.g. 0.1.2]
- Python Version: [e.g. 3.10]

#### Additional context

Add any other context about the problem here.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Feature request
about: Suggest an idea 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.
164 changes: 164 additions & 0 deletions .github/workflows/build-push-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
# build-push-docker-image.yml: builds a Docker container image and pushes it
# to the Agent Artificial repository in GitHub Container Registry (GHCR)

on:
workflow_call:
inputs:
aws_region:
required: false
type: string
default: us-west-1
description: AWS region for CLI commands (such as ECR login)
build_args:
required: false
type: string
default: ""
description: newline-delimited list of Docker build args (as "key=value")
context_dir:
required: false
type: string
default: "."
description: context directory which is passed to docker build
docker_file:
required: false
type: string
default: Dockerfile
description: override Dockerfile name
image_prefix:
required: false
type: string
default: ""
description: prefix for image name
image_registry:
required: false
type: string
default: ghcr.io/${{ github.repository_owner }}
description: Docker/OCI registry to host the image (hostname and optional path)
image_tag:
required: true
type: string
description: image tag (e.g. build date, commit, version, variant)
microservice:
required: true
type: string
description: name of the application
microservice_env:
required: true
type: string
description: name of the environment (e.g. dev, test, prod)
microservice_path:
required: true
type: string
description: path within the caller's Git repo which contains the Dockerfile
push:
required: false
type: boolean
default: true
description: whether to push the built image to GHCR (true) or simply build it (false)
branch:
required: false
type: string
default: main
description: the branch deploy
outputs:
image_name:
value: ${{ jobs.build_push_docker_image.outputs.image_name }}
description: the full name of the image, including registry but excluding tag
# secrets:
# aws_access_key:
# required: false
# description: AWS access key ID for CLI commands
# aws_secret_key:
# required: false
# description: AWS secret access key for CLI commands

jobs:
Debug:
runs-on: ubuntu-latest
steps:
- name: Debug information
run: |
echo "=== Variables ==="
echo "Variable: ${{ inputs.build_args }}"
echo "Variable: ${{ inputs.context_dir }}"
echo "Variable: ${{ inputs.docker_file }}"
echo "Variable: ${{ inputs.image_prefix }}"
echo "Variable: ${{ inputs.microservice }}"
echo "Variable: ${{ inputs.microservice_env }}"

build_push_docker_image:
name: Build and Push Docker Image
runs-on: ubuntu-latest
env:
build_args: ${{ inputs.build_args }}
context_dir: ${{ inputs.context_dir }}
docker_file: ${{ inputs.docker_file }}
#image_name: ${{ inputs.image_registry }}/${{ inputs.image_prefix }}${{ inputs.microservice }}-${{ inputs.microservice_env }}
image_tag: ${{ inputs.image_tag }}
microservice: ${{ inputs.microservice }}
microservice_path: ${{ inputs.microservice_path }}
microservice_env: ${{ inputs.microservice_env }}
push: ${{ inputs.push }}
outputs:
image_name: ${{ env.image_name }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch }}
#submodules: 'true'

- name: Set registry_host and convert image_name to lower
env:
image_registry: ${{ inputs.image_registry }}
image_prefix: ${{inputs.image_prefix}}
microservice: ${{inputs.microservice}}
microservice_env: ${{inputs.microservice_env}}
run: |
echo "Grab just the docker registry host"
registry_host="${image_registry%%/*}"
echo "registry_host=${registry_host}" | tee -a $GITHUB_ENV
echo "Converting the GitHub org to lower case (required for GHCR)"
#echo "image_registry=$(echo $image_registry | tr '[:upper:]' '[:lower:]')" | tee -a $GITHUB_ENV
echo "image_name=$(echo $image_registry | tr '[:upper:]' '[:lower:]')/${image_prefix}${microservice}-${microservice_env}" | tee -a $GITHUB_ENV

- name: debug
run: |
echo "=== Variables ==="
echo registry_host: ${{env.registry_host}}
echo image_name: ${{env.image_name}}
echo image_tag: ${{env.image_tag}}
echo complete image name: ${{ env.image_name }}:${{ env.image_tag }}

- name: Install Docker via Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
#driver-opts: image=moby/buildkit:v0.10.6

# - name: Login to ECR
# if: inputs.push && contains(env.registry_host, '.dkr.ecr.')
# uses: docker/login-action@v2
# with:
# registry: ${{ env.registry_host }}
# username: ${{ secrets.aws_access_key }}
# password: ${{ secrets.aws_secret_key }}

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image and push to registry
uses: docker/build-push-action@v5
with:
build-args: ${{ env.build_args }}
context: ${{ env.context_dir }}
file: ${{ env.microservice_path }}//${{ env.docker_file }}
github-token: ${{ secrets.GITHUB_TOKEN }}
no-cache: true
pull: true
push: ${{ env.push }}
tags: "${{ env.image_name }}:latest,${{ env.image_name }}:${{ env.image_tag }}"
137 changes: 137 additions & 0 deletions .github/workflows/pr_and_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: PR and main Push Tests

on:
pull_request:
branches:
- main
pull_request_review:
types: [submitted]


push:
branches:
- main

workflow_dispatch:

jobs:
Variables:
runs-on: ubuntu-latest
outputs:
image_tag: ${{steps.vars.outputs.image_tag}}
microservice: commune
microservice_path: ./
context_dir: "."
microservice_env: dev
image_registry: ghcr.io/${{ github.repository_owner }}

steps:
- name: Create Timestamp Variable for image tag
id: vars
#Edit variables down here for values
run: |
echo "image_tag=$(date +'%Y-%m-%d--%H-%M-%S')" >> $GITHUB_OUTPUT

Debug:
needs: Variables
runs-on: ubuntu-latest
steps:
- name: Debug information
run: |
echo "=== Variables ==="
echo "Time Var: ${{ needs.variables.outputs.image_tag }}"
echo "Variable: ${{ needs.variables.outputs.microservice }}"
echo "Variable: ${{ needs.variables.outputs.microservice_path }}"
echo "Variable: ${{ needs.variables.outputs.microservice_env }}"
echo "Variable: ${{ needs.variables.outputs.context_dir }}"
echo "Variable: ${{ needs.variables.outputs.image_registry }}"

Commune_Tests:
needs: Variables
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# with:
# submodules: 'true'

- name: Install Prerequisites
run: |
sudo apt-get update
sudo apt-get install curl nano python3 python3-dev python-is-python3 build-essential cargo libstd-rust-dev -y
sudo python -m pip install --upgrade pip
sudo pip install setuptools wheel
sudo pip install -r requirements.txt
sudo apt-get install -y nodejs npm
sudo npm install -g pm2

- name: Install Commune
run: |
sudo pip install -e .

# This takes WAY too long (at least on GitHub provided runners)
# - name: Commune Tests - c sync
# run: c sync

# # Interestingly, below the variables for inputs cannot be called directly. (even tried: ${{github.event.inputs.image_tag}})
# # Instead, saving them as env vars first and then using them as env vars below works.
# - name: Initial test (with retry because RPC issues)
# uses: Wandalen/wretry.action@master
# with:
# command: c balance
# attempt_limit: 3
# attempt_delay: 10000

- name: Commune Tests - c balance
run: c balance

- name: Commune Tests - c serve demo tag=latest
run: c serve demo tag=latest

- name: Commune Tests - c logs demo lines=1 mode=local
run: c logs demo lines=1 mode=local

- name: Commune Tests - c root_key
run: c root_key

- name: Commune Tests - c stats
run: c stats

- name: Commune Tests - c subnet_params netuid=all update=True
run: c subnet_params netuid=all update=True

- name: Commune Tests - c namespace network=subspace
run: c namespace network=subspace

# TODO: This broke see here for error: https://github.com/Agent-Artificial/commune/actions/runs/8351758971/job/22860686705
# - name: Commune Tests - c global_params
# run: c global_params

- name: Commune Tests - c modules
run: c modules



- name: Commune Tests - c data.text.realfake test
run: c data.text.realfake test

- name: Commune Tests - c call data.text.realfake::whadup sample
run: c call data.text.realfake::whadup sample

- name: Commune Tests - c call data.text.truthqa::whadup sample
run: c call data.text.truthqa::whadup sample

- name: Commune Tests - c port_range
run: c port_range

# PLEASE PLEASE PLEASE ADD TESTS HERE

Create-Docker-Image:
needs: [Commune_Tests, Variables]
uses: ./.github/workflows/build-push-docker-image.yml
with:
image_tag: ${{ needs.variables.outputs.image_tag }}
microservice: ${{needs.variables.outputs.microservice}}
microservice_path: ${{needs.variables.outputs.microservice_path}}
context_dir: ${{needs.variables.outputs.microservice_path}}
microservice_env: ${{needs.variables.outputs.microservice_env}}
image_registry: ${{needs.variables.outputs.image_registry}}
Loading