Merge pull request #54 from hsluv/dependabot/github_actions/actions/c… #51
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
# Copyright (c) 2022 Sebastian Pipping <[email protected]> | |
# Licensed under the MIT license, see file LICENSE.txt | |
name: Run the Test Suite | |
on: | |
pull_request: | |
push: | |
schedule: | |
- cron: '0 16 * * 5' # Every Friday 4pm | |
workflow_dispatch: | |
jobs: | |
run_test_suite: | |
strategy: | |
matrix: | |
python-version: [3.9, 3.13] # no current need for in-between versions | |
name: Run the Test Suite | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run the Test Suite | |
run: |- | |
set -x | |
pip install -U setuptools # for Python >=3.12 | |
pip install pytest | |
python setup.py sdist | |
cd dist/ | |
tar xf hsluv-*.tar.gz | |
cd hsluv-*/ | |
pytest -v tests/ |