-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.12 KB
/
autorun.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# GitHub Action that runs pytest
name: Test Webservices
on:
workflow_dispatch:
push:
schedule:
# execute daily at 8 am
- cron: '0 8 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: # https://github.com/stefanzweifel/git-auto-commit-action#checkout-the-correct-branch
ref: ${{ github.head_ref }}
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: 'x64'
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Run script
run: |
python test_webservices.py
# Update timestamp last run
- name: Update last_run
run: |
date > timestamp
# Commit and Push timestamp
- name: Commit and Push files
run: |
git config --local user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git config --local user.name "test-webservices[bot]"
git add timestamp
git commit -m "Update timestamp last run" -a
git push