Skip to content

Commit

Permalink
Add Github Acions
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed Jan 25, 2024
1 parent b0bdd01 commit d7eba06
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/python_ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python CI

on:
pull_request:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -

- name: Install dependencies
run: poetry install

- name: Run mypy
run: poetry run mypy

- name: Run pytest
run: poetry run pytest

- name: Check with black
run: poetry run black --check .
77 changes: 76 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ typer = "^0.9.0"
web3 = "^6.14.0"
mypy = "^1.8.0"
types-requests = "^2.31.0.20240106"
black = "^23.12.1"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit d7eba06

Please sign in to comment.