Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
pull main; resolve conflicts for moonbase
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <[email protected]>
  • Loading branch information
noslav committed Mar 14, 2023
2 parents ba9b6e0 + 4e125f7 commit 5373075
Show file tree
Hide file tree
Showing 15 changed files with 839 additions and 35 deletions.
12 changes: 12 additions & 0 deletions .env_example
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
RPC_ENDPOINT=
BLOCK_ID_START=
PROOFCHAIN_ADDRESS=
FINALIZER_PRIVATE_KEY=
FINALIZER_ADDRESS=
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_DATABASE=
CHAIN_TABLE_NAME=
GAS_PRICE=
GAS_LIMIT=
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
target-branch: "develop"
reviewers:
- "noslav"

27 changes: 27 additions & 0 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: docker-ci

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
- "develop"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to GCR
uses: docker/login-action@v2
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}

- uses: actions/checkout@v2
- name: Build & Publish the Docker image
run: |
docker build . --file Dockerfile --tag gcr.io/covalent-project/bsp-finalizer:latest
docker push gcr.io/covalent-project/bsp-finalizer:latest;
21 changes: 21 additions & 0 deletions .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: hadolint

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
- "develop"

jobs:
hadolint:
name: dockerfile-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint dockerfile
uses: brpaz/hadolint-action@master
with:
dockerfile: "Dockerfile"
42 changes: 42 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: pylint

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
- "develop"

jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install pipenv
pipenv --python '3.10' install --dev
- name: Analysing the code with pylint
run: |
pipenv run pylint --rcfile=.pylintrc src/*.py
- name: Analysing the code with pycodestyle
run: |
pip install pycodestyle
pipenv run pycodestyle src/*.py
# - name: Analysing the code with black
# run: |
# pipenv install --skip-lock "black==22.3.0"
# pipenv run black --check core/views.py core/views_platform.py
# # $(git ls-files '*.py')
22 changes: 22 additions & 0 deletions .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: tag-release

on:
push:
tags:
- "v*"

jobs:
tagged-release:
name: Tagged Release
runs-on: "ubuntu-latest"

steps:
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: false
prerelease: false
files: |
*.zip
*.tar.gz
Loading

0 comments on commit 5373075

Please sign in to comment.