Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
jobs:
security-check:
name: Security Check
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:

lint-and-format:
name: Lint & Format Check
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: security-check
steps:
- name: Checkout code
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:

test-backend:
name: Backend Tests
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: security-check
steps:
- name: Checkout code
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:

chain-build-test:
name: DRP Chain Build & Tests
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: security-check
defaults:
run:
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:

build-and-test:
name: Build & Integration Tests
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [lint-and-format, test-backend, chain-build-test]
steps:
- name: Checkout code
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:

security-scan:
name: Security Scan
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,46 @@

jobs:
build:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y nasm build-essential

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest pytest-cov pytest-asyncio
if [ -f requirements.txt ]; then
pip install -r requirements.txt;
fi

- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

- name: Test with pytest
run: |
python -m pytest -rs --cov=. --cov-report=xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
10 changes: 5 additions & 5 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
secret-scan:
name: Secret Scanning
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:

dependency-scan:
name: Dependency Vulnerability Scan
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:

code-quality:
name: Code Quality & Security
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -207,7 +207,7 @@ jobs:

security-test:
name: Security Tests
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:

notify-security:
name: Security Notification
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
if: failure()
needs: [secret-scan, dependency-scan, code-quality, security-test]
steps:
Expand Down
Loading