-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
146 changed files
with
255 additions
and
27,038 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
name: CI | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
black: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: ['3.8'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: bash depends/install_ubuntu_depends.sh | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Upgrade pip, setuptools and wheel | ||
run: python -m pip install --upgrade pip setuptools wheel | ||
- name: Install requirements | ||
run: pip install --upgrade -r requirements.txt | ||
- name: Install black | ||
run: pip install --upgrade black==22.1.0 | ||
- name: Run black | ||
run: black --check . | ||
|
||
isort: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: ['3.8'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: bash depends/install_ubuntu_depends.sh | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Upgrade pip, setuptools and wheel | ||
run: python -m pip install --upgrade pip setuptools wheel | ||
- name: Install requirements | ||
run: pip install --upgrade -r requirements.txt | ||
- name: Install isort | ||
run: pip install --upgrade isort==5.10.1 | ||
- name: Run isort | ||
run: isort --profile black --check . | ||
|
||
mypy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: ['3.8'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: bash depends/install_ubuntu_depends.sh | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Upgrade pip, setuptools and wheel | ||
run: python -m pip install --upgrade pip setuptools wheel | ||
- name: Install requirements | ||
run: pip install --upgrade -r requirements.txt | ||
- name: Install mypy | ||
run: pip install --upgrade mypy | ||
- name: Run mypy | ||
run: mypy --ignore-missing-imports synthtiger | ||
|
||
pylint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: ['3.8'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: bash depends/install_ubuntu_depends.sh | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Upgrade pip, setuptools and wheel | ||
run: python -m pip install --upgrade pip setuptools wheel | ||
- name: Install requirements | ||
run: pip install --upgrade -r requirements.txt | ||
- name: Install pylint | ||
run: pip install --upgrade pylint | ||
- name: Run pylint | ||
run: pylint --errors-only -s y synthtiger | ||
|
||
pytest-ubuntu: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: ['3.6', '3.7', '3.8', '3.9'] | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: bash depends/install_ubuntu_depends.sh | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Upgrade pip, setuptools and wheel | ||
run: python -m pip install --upgrade pip setuptools wheel | ||
- name: Install requirements | ||
run: pip install --upgrade -r requirements.txt | ||
- name: Install pytest | ||
run: pip install --upgrade pytest | ||
- name: Run pytest | ||
run: pytest . | ||
|
||
pytest-macos: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
python: ['3.6', '3.7', '3.8', '3.9'] | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: bash depends/install_macos_depends.sh | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Upgrade pip, setuptools and wheel | ||
run: python -m pip install --upgrade pip setuptools wheel | ||
- name: Install requirements | ||
run: pip install --upgrade -r requirements.txt | ||
- name: Install pytest | ||
run: pip install --upgrade pytest | ||
- name: Run pytest | ||
run: pytest . | ||
|
||
pytest-windows: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python: ['3.6', '3.7', '3.8', '3.9'] | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up MSYS2 | ||
uses: msys2/setup-msys2@v2 | ||
- name: Install dependencies | ||
run: msys2 depends/install_windows_depends.sh | ||
- name: Add dependency path | ||
run: echo "D:\a\_temp\msys64\mingw64\bin" >> $env:GITHUB_PATH | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Upgrade pip, setuptools and wheel | ||
run: python -m pip install --upgrade pip setuptools wheel | ||
- name: Install requirements | ||
run: pip install --upgrade -r requirements.txt | ||
- name: Install pytest | ||
run: pip install --upgrade pytest | ||
- name: Run pytest | ||
run: pytest . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Github Pages | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: bash depends/install_ubuntu_depends.sh | ||
- name: Set up python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Upgrade pip, setuptools and wheel | ||
run: python -m pip install --upgrade pip setuptools wheel | ||
- name: Install requirements | ||
run: pip install --upgrade -r requirements.txt | ||
- name: Install sphinx | ||
run: pip install --upgrade sphinx sphinx-rtd-theme | ||
- name: Build docs | ||
run: make -C docs clean html | ||
- name: Deploy docs | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build/html |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
brew install \ | ||
libtiff \ | ||
libjpeg \ | ||
webp \ | ||
little-cms2 \ | ||
freetype \ | ||
harfbuzz \ | ||
fribidi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
sudo apt install -y \ | ||
libtiff5-dev \ | ||
libjpeg8-dev \ | ||
libopenjp2-7-dev \ | ||
zlib1g-dev \ | ||
libfreetype6-dev \ | ||
liblcms2-dev \ | ||
libwebp-dev \ | ||
tcl8.6-dev \ | ||
tk8.6-dev \ | ||
python3-tk \ | ||
libharfbuzz-dev \ | ||
libfribidi-dev \ | ||
libxcb1-dev |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pacman --noconfirm -S \ | ||
mingw-w64-x86_64-libjpeg-turbo \ | ||
mingw-w64-x86_64-zlib \ | ||
mingw-w64-x86_64-libtiff \ | ||
mingw-w64-x86_64-freetype \ | ||
mingw-w64-x86_64-lcms2 \ | ||
mingw-w64-x86_64-libwebp \ | ||
mingw-w64-x86_64-openjpeg2 \ | ||
mingw-w64-x86_64-libimagequant \ | ||
mingw-w64-x86_64-libraqm |
This file was deleted.
Oops, something went wrong.
Empty file.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.