支持多适配器 #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |