Skip to content

Commit

Permalink
Add CI (#9)
Browse files Browse the repository at this point in the history
* Test ci flow

* Modify requirements

* Split workflow

* Unify steps

* Grant permissions to db folder

* Fix commands

* Remove unnecessary commands

* Missing newline

* Address feedback

* Address more feedback

* Update action version
  • Loading branch information
SaxenaKaustubh authored Jun 14, 2024
1 parent b37da19 commit 55482b5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/claudia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will install Claudia after installing Python dependencies, installs rippled and launches a network.

name: Claudia

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
launch_network_with_claudia:
runs-on: ubuntu-latest
strategy:
matrix:
version: [ 10, 11, 12, x ]
name: "Install Python 3.${{ matrix.version }}"
steps:
- uses: actions/checkout@v4
- name: "Set up Python 3.${{ matrix.version }}"
uses: actions/setup-python@v5
with:
python-version: "3.${{ matrix.version }}"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -r ./src/claudia/requirements.txt
- name: Install Claudia locally
run: |
python3 setup.py sdist bdist_wheel
pip install dist/*.tar.gz
- name: Install rippled with Claudia
run: |
claudia rippled install --rippled_branch master
- name: Start network with Claudia
run: |
claudia local-mainnet start
- name: Stop network with Claudia
run: |
claudia local-mainnet stop
2 changes: 1 addition & 1 deletion src/claudia/versions.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CLAUDIA_VERSION = "0.1b1"
CLAUDIA_VERSION = "0.2"

0 comments on commit 55482b5

Please sign in to comment.