From 922b389b7fe7f57f90754cbf841ff067bee340de Mon Sep 17 00:00:00 2001 From: umuttopalak Date: Fri, 29 Mar 2024 03:32:17 +0300 Subject: [PATCH] test-action added --- .github/workflows/test-action.yaml | 19 +++++++++++++++++++ action.yml | 12 ++++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test-action.yaml diff --git a/.github/workflows/test-action.yaml b/.github/workflows/test-action.yaml new file mode 100644 index 0000000..654afdb --- /dev/null +++ b/.github/workflows/test-action.yaml @@ -0,0 +1,19 @@ +# .github/workflows/test_action.yaml +name: Test Action +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + name: test + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Reload pythonanywhere webapp + uses: ./ # Uses an action in the root directory + with: + HOST = www.pythonanywhere.com + USERNAME = gondergelsin + API_TOKEN = 70551989b1813e53c7e05f72547d9abd33d3f562 + DOMAIN_NAME = 33084452 + CONSOLE_ID = gondergelsin.pythonanywhere.com \ No newline at end of file diff --git a/action.yml b/action.yml index 3410fef..921785c 100644 --- a/action.yml +++ b/action.yml @@ -17,5 +17,13 @@ inputs: description: 'Console id of the webapp created from' required: true runs: - using: 'python3.10' - main: 'main.py' + using: 'composite' + steps: + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install Dependencies + run: pip install -r requirements.txt + shell: bash +