Skip to content

Commit

Permalink
examples: add hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Nov 11, 2024
1 parent fa918ae commit aba0f74
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run tests
run: poetry run pytest

- name: Run examples
run: |
for script in examples/*.py; do
poetry run python "$script"
done
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ __pycache__/
.DS_Store
pyrightconfig.json
README-PYPI.md

poetry.lock
/myenv
/dist/
1 change: 1 addition & 0 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ python:
description: Python Client SDK Generated by Speakeasy.
enumFormat: enum
envVarPrefix: MOOV
homepage: https://github.com/moovfinancial/moov-python
fixFlags:
responseRequiredSep2024: true
flattenGlobalSecurity: true
Expand Down
8 changes: 8 additions & 0 deletions examples/hello_world.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from moov import some_module

def main():
# Example code using the library
print(some_module.some_function())

if __name__ == "__main__":
main()

0 comments on commit aba0f74

Please sign in to comment.