Skip to content

Commit

Permalink
ci: adapt the ci to the refactr
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed Sep 21, 2023
1 parent 87ce246 commit da9d47f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 30 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
lint-py:
runs-on: ubuntu-latest
timeout-minutes: 2
# `jobs.<job_id>.defaults`:
# `jobs.<job_id>.defaults`:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun
defaults:
run:
working-directory: "pysdk"
# defaults:
# run:
# working-directory: "pysdk"
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
mypy-static:
runs-on: ubuntu-latest
# `jobs.<job_id>.defaults`:
# `jobs.<job_id>.defaults`:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun
defaults:
run:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ concurrency:
jobs:
tests:
runs-on: ubuntu-latest
# `jobs.<job_id>.defaults`:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun
defaults:
run:
working-directory: "pysdk"
env:
# https://www.notion.so/nibiru/Resources-and-Repo-Configs-b31aa8074a2b419d80b0c946ed5efab0
DEVNET_NUMBER: ${{ secrets.DEVNET_NUMBER }}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
# `jobs.<job_id>.defaults`:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun
defaults:
run:
working-directory: "pysdk"
steps:
- uses: actions/checkout@main

Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ concurrency:
jobs:
tests:
runs-on: ubuntu-latest
# `jobs.<job_id>.defaults`:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun
defaults:
run:
working-directory: "pysdk"
env:
# https://www.notion.so/nibiru/Resources-and-Repo-Configs-b31aa8074a2b419d80b0c946ed5efab0
VALIDATOR_MNEMONIC: "guard cream sadness conduct invite crumble clock pudding hole grit liar hotel maid produce squeeze return argue turtle know drive eight casino maze host"
Expand Down Expand Up @@ -64,7 +59,7 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-2 # increment to reset cache
key: poetry-3 # increment to reset cache

# ----------------------------------------------
# Install ping for early tests
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "py-sdk/scripts"
name: "scripts"

on:
pull_request:
Expand All @@ -18,8 +18,8 @@ concurrency:

jobs:
localnet:
# The localnet job verifies that the repo's script for starting a local Nibiru
# chain runs without errors.
# The localnet job verifies that the repo's script for starting a local Nibiru
# chain runs without errors.
runs-on: ubuntu-latest
env:
# https://www.notion.so/nibiru/Resources-and-Repo-Configs-b31aa8074a2b419d80b0c946ed5efab0
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/testnet-notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Colab notebook testing

on:
schedule:
- cron: "0 0 * * *"
# cron expression [minute hour day-of-month month day-of-week]
# - cron: "20 4 */4 * *" # Ex: Runs every 4 days at 04:20 UTC
- cron: "0 0 * * *" # Ex: Runs every 1 days at 00:00 UTC

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
Expand All @@ -11,11 +13,6 @@ concurrency:
jobs:
tests:
runs-on: ubuntu-latest
# `jobs.<job_id>.defaults`:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun
defaults:
run:
working-directory: "pysdk"
env:
# https://www.notion.so/nibiru/Resources-and-Repo-Configs-b31aa8074a2b419d80b0c946ed5efab0
DEVNET_NUMBER: ${{ secrets.DEVNET_NUMBER }}
Expand Down

0 comments on commit da9d47f

Please sign in to comment.