Skip to content

Commit

Permalink
Merge pull request #38 from hsluv/resurrect-ci
Browse files Browse the repository at this point in the history
Resurrect CI (fixes #37)
  • Loading branch information
boronine authored Jun 5, 2022
2 parents b628f92 + d010457 commit e68983a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 10 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright (c) 2022 Sebastian Pipping <sebastian@pipping.org>
# Licensed under the MIT license, see file LICENSE.txt

name: Run the Test Suite

on:
- pull_request
- push

jobs:
run_test_suite:
strategy:
matrix:
python-version: [3.7, '3.10'] # no current need for in-between versions
name: Run the Test Suite
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Run the Test Suite
run: |-
set -x
python setup.py sdist
cd dist/
tar xf hsluv-*.tar.gz
cd hsluv-*/
python setup.py test
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/hsluv/hsluv-python.svg?branch=master)](https://travis-ci.org/hsluv/hsluv-python)
[![Build Status](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml/badge.svg)](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml)
[![Package Version](https://img.shields.io/pypi/v/hsluv.svg)](https://pypi.python.org/pypi/hsluv/)

A Python implementation of [HSLuv](https://www.hsluv.org) (revision 4).
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"Operating System :: OS Independent",
"Topic :: Software Development",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
],
python_requires='>=3.6',
python_requires='>=3.7',
setup_requires=[
'setuptools>=38.6.0', # for long_description_content_type
],
Expand Down

0 comments on commit e68983a

Please sign in to comment.