Skip to content

GraphQL Cron Job #182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
try running python script
  • Loading branch information
leo-step committed Jul 29, 2022
commit d0fe108e0faab3d35169a129129a23788ac63336
22 changes: 22 additions & 0 deletions .github/workflows/run-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: run-python

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner.
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.9 #install the python needed
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: execute script # run file
run: |
python test.py
3 changes: 3 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import requests

print(requests.get("https://www.google.com").text)