Skip to content

添加隐藏按钮

添加隐藏按钮 #11

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: RunTest
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
python-version: 3.7
# The target architecture (x86, x64) of the Python interpreter.
architecture: x64
- name: Install dependencies
run: pip3 install -r $GITHUB_WORKSPACE/requirements.txt
# Run generator
- name: Run Generator
run: python3 $GITHUB_WORKSPACE/bangumi_report.py -u xiadong1994 -y all
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
# Artifact name
name: test_report.html
# A file, directory or wildcard pattern that describes what to upload
path: xiadong1994-all-anime-report.html