Skip to content

Commit

Permalink
Workitem/update gh workflows (#3)
Browse files Browse the repository at this point in the history
* ci: updated workflows

* build: added dependency for python 3.9 and 3.10

* build: updated poetry lock

* fix: fixed bug in python 3.10

* ci: Updated deploy docs workflow trigger
  • Loading branch information
karolpivo authored Dec 2, 2023
1 parent 98fa603 commit f3056b5
Show file tree
Hide file tree
Showing 6 changed files with 247 additions and 784 deletions.
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Describe your changes
<!-- What changes have been made in this branch -->

-
21 changes: 10 additions & 11 deletions .github/workflows/build_and_publish_docs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Build and deploy docs to GitHub Pages

on: workflow_dispatch

# push:
# branches:
# - master
# paths:
# - 'mkdocs.yml'
# - 'docs/**'
# - 'eth_2_key_manager_api_client/**'
on:
push:
branches:
- master
paths:
- 'mkdocs.yml'
- 'docs/**'
- 'eth_2_key_manager_api_client/**'

jobs:
deploy:
Expand All @@ -19,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
python-version: '3.11'

- name: install poetry
run: pip install poetry
Expand All @@ -31,7 +30,7 @@ jobs:
run: poetry install

- name: Build documentation
run: poetry run mkdocs build --verbose --clean --strict
run: poetry run mkdocs build --verbose --clean

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ on: workflow_dispatch
# # - 'eth_2_key_manager_api_client/**'

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, 3.10, 3.11]
python-version: ['3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions eth_2_key_manager_api_client/eth_2_keymanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class Eth2KeyManager:

def __init__(
self,
base_url: str | None = None,
token: str | None = None,
base_url: Union[str, None] = None,
token: Union[str, None] = None,
cookies: Dict[str, str] = {},
headers: Dict[str, str] = {},
timeout: float = 10.0,
Expand Down
Loading

0 comments on commit f3056b5

Please sign in to comment.