Skip to content

Commit d010457

Browse files
committed
Add GitHub Actions equivalent of just-removed Travis CI
1 parent 618138e commit d010457

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright (c) 2022 Sebastian Pipping <sebastian@pipping.org>
2+
# Licensed under the MIT license, see file LICENSE.txt
3+
4+
name: Run the Test Suite
5+
6+
on:
7+
- pull_request
8+
- push
9+
10+
jobs:
11+
run_test_suite:
12+
strategy:
13+
matrix:
14+
python-version: [3.7, '3.10'] # no current need for in-between versions
15+
name: Run the Test Suite
16+
runs-on: ubuntu-20.04
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Run the Test Suite
26+
run: |-
27+
set -x
28+
python setup.py sdist
29+
cd dist/
30+
tar xf hsluv-*.tar.gz
31+
cd hsluv-*/
32+
python setup.py test

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[![Build Status](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml/badge.svg)](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml)
12
[![Package Version](https://img.shields.io/pypi/v/hsluv.svg)](https://pypi.python.org/pypi/hsluv/)
23

34
A Python implementation of [HSLuv](https://www.hsluv.org) (revision 4).

0 commit comments

Comments
 (0)