Skip to content

dev(narugo): save it #6

dev(narugo): save it

dev(narugo): save it #6

Workflow file for this run

#file: noinspection YAMLSchemaValidation
name: Repacker
on:
push:
workflow_dispatch:
schedule:
- cron: '0 6,14,22 * * *'
jobs:
unittest:
name: Code Test Repacker
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
python-version:
- '3.8'
steps:
- name: Get system version for Linux
if: ${{ contains(matrix.os, 'ubuntu') }}
shell: bash
run: |
echo "OS_NAME=Linux" >> $GITHUB_ENV
echo "IS_WIN=" >> $GITHUB_ENV
echo "IS_MAC=" >> $GITHUB_ENV
- name: Set environment for Cpython
if: ${{ !contains(matrix.python-version, 'pypy') }}
shell: bash
run: |
echo "IS_PYPY=" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 20
submodules: 'recursive'
- name: Set up system dependences on Linux
if: ${{ env.OS_NAME == 'Linux' }}
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y tree cloc wget curl make zip
sudo apt-get install -y git-lfs
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install --upgrade flake8 setuptools wheel twine
pip install -r requirements.txt
- name: Test the basic environment
shell: bash
run: |
python -V
pip --version
pip list
tree .
cloc skpick
cloc test
- name: Run unittest
env:
CI: 'true'
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_SRC_REPO: ${{ secrets.HF_SRC_REPO }}
HF_DST_REPO: ${{ secrets.HF_DST_REPO }}
shell: bash
run: |
python -m skpick.online