Skip to content

Commit

Permalink
Merge pull request #11 from KN-GEST-ongit/issue-10
Browse files Browse the repository at this point in the history
Issue 10
  • Loading branch information
marcinbator authored Dec 5, 2024
2 parents 1b83089 + 363b853 commit 5a935d5
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 0 deletions.
Empty file modified .github/CODEOWNERS
100644 → 100755
Empty file.
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy

on:
push:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
port: ${{ secrets.REMOTE_PORT }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /home/project/rag-2-ai
git checkout main
git pull
cd /home/project
docker compose up --build -d
echo "$(date): ai deployed successfully" >> deploy-log.txt
docker system prune -f
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
pull_request:
branches: [ "main", "dev" ]
push:
branches: [ "dev" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
run: |
python -m pip install pip==21.1.2
pip install -r requirements.txt
- name: Test with unittest
run: |
python -m unittest discover -s tests
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
10 changes: 10 additions & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import unittest


class MyTestCase(unittest.TestCase):
def test_something(self):
self.assertEqual(True, True)


if __name__ == '__main__':
unittest.main()

0 comments on commit 5a935d5

Please sign in to comment.