Skip to content

Added setuptools

Added setuptools #3

Workflow file for this run

name: Test
on:
push:
pull_request:
jobs:
tox:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Install System Dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install pkg-config
brew install libffi
brew install pango
brew install glib
# https://github.com/Kozea/CairoSVG/issues/354#issuecomment-1160552256
sudo ln -s /opt/homebrew/lib/libcairo* .
sudo ln -s /opt/homebrew/lib/libpango* .
sudo ln -s /opt/homebrew/lib/libgobject* .
sudo ln -s /opt/homebrew/lib/libglib* .
- name: Install System Dependencies (Windows)
if: runner.os == 'windows'
run: |
C:\msys64\usr\bin\bash -lc 'pacman -S mingw-w64-x86_64-ttf-dejavu mingw-w64-x86_64-gtk3 --noconfirm'
xcopy "C:\msys64\mingw64\share\fonts\TTF" "C:\Users\runneradmin\.fonts" /e /i
echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH
rm C:\msys64\mingw64\bin\python.exe
- name: Test with tox
run: tox