Skip to content

支持多适配器

支持多适配器 #31

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 "[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 }}