-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (39 loc) · 991 Bytes
/
test.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
name: Test And Push Img
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
QWEATHER_APIKEY: ${{ secrets.QWEATHER_API_KEY }}
QWEATHER_APITYPE: 1
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
python-version: "3.10"
- name: Install dependencies
run: pdm install
- name: Run Tests
run: pdm run pytest
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "Bot"
git commit -a -m "Update Img"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}