Skip to content

Update build_release.yml #20

Update build_release.yml

Update build_release.yml #20

Workflow file for this run

name: Unit tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout Overviewer
uses: actions/checkout@v4
- name: Checkout Pillow
uses: actions/checkout@v4
with:
repository: python-pillow/Pillow
ref: refs/tags/10.2.0
path: pillow
sparse-checkout: |
src/libImaging
sparse-checkout-cone-mode: false
- name: Install Python 3
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install networkx pytest
echo "PIL_INCLUDE_DIR=pillow/src/libImaging" >> "$GITHUB_ENV"
- name: Build Overviewer
run: |
python setup.py build
- name: Run tests with pytest
run: |
pytest