-
Notifications
You must be signed in to change notification settings - Fork 15
37 lines (32 loc) · 1 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.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/