Merge pull request #232 from DigitalSlideArchive/dependabot/npm_and_y… #7
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
--- | |
name: ci | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
# Seeing whether a failure is exclusive to one platform is useful | |
fail-fast: false | |
matrix: | |
os: | |
# Use an older Linux: https://pyinstaller.org/en/stable/usage.html#making-gnu-linux-apps-forward-compatible | |
- ubuntu-20.04 | |
- macos-14 | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
# Tags are needed to compute the current version number | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install tox | |
run: | | |
pip install --upgrade pip | |
pip install tox | |
- name: Run tests | |
run: | | |
tox | |
- name: Build binary | |
run: | | |
tox -e binary | |
- name: Test binary runs | |
run: | | |
dist/imagedephi --help | |
- name: Upload binary artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: imagedephi-${{ matrix.os }}-binary | |
path: | | |
dist/imagedephi | |
dist/imagedephi.exe | |
retention-days: 5 | |
if-no-files-found: error |