Skip to content

Commit

Permalink
Add github action
Browse files Browse the repository at this point in the history
Signed-off-by: Choonho Son <[email protected]>
  • Loading branch information
Choonho Son committed Oct 27, 2023
1 parent 27fd352 commit c3e7c3e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: run main.py


jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2

- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute python script
run: python src/main.py
Empty file added requirements.txt
Empty file.
7 changes: 7 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This is main function

def main():
echo "Run main function"

if __name__ == "__main__":
main()

0 comments on commit c3e7c3e

Please sign in to comment.