Skip to content

Commit

Permalink
test-action added
Browse files Browse the repository at this point in the history
  • Loading branch information
umuttopalak committed Mar 29, 2024
1 parent ab3ce75 commit 922b389
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test-action.yaml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 10 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 922b389

Please sign in to comment.