-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (41 loc) · 1.29 KB
/
waifu2x.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
42
43
44
name: Sync Waifu2x Models
on:
# push:
workflow_dispatch:
schedule:
- cron: '30 16 * * *'
jobs:
sync:
name: Sync Waifu2x ONNX
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
python-version:
- '3.8'
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 20
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up python dependences
run: |
pip install --upgrade pip
pip install --upgrade flake8 setuptools wheel twine
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-build.txt ]; then pip install -r requirements-build.txt; fi
if [ -f requirements-test.txt ]; then pip install -r requirements-test.txt; fi
if [ -f requirements-test.txt ]; then pip install -r requirements-zoo.txt; fi
pip install --upgrade build
- name: Sync Models
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
run: |
python -m zoo.waifu2x sync