Skip to content

Masksd 591~595

Masksd 591~595 #1383

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Check colors and img size
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@67afc2d7662c9d296547435e7605cc57a1df46f3
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pillow tqdm numpy requests
- name: Check colors
run: |
PRNUM=${{ github.event.pull_request.number }} ONLYCHECK=1 python tools/canonicialize_masks.py
- name: Check img size
run: |
PRNUM=${{ github.event.pull_request.number }} python tools/check_img_size.py