Skip to content

📖 配置项分行显示 #28

📖 配置项分行显示

📖 配置项分行显示 #28

Workflow file for this run

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 "bot@kexue.io"
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 }}