From 4f12e1dd97562cf3008f44f79611c5a59e67fc03 Mon Sep 17 00:00:00 2001 From: Javier Santacruz Date: Tue, 28 May 2024 07:58:33 +0200 Subject: [PATCH] Adds tests github workflow pipeline --- .github/workflows/tests.yaml | 22 ++++++++++++++++++++++ .travis.yml | 12 ------------ README.md | 2 +- 3 files changed, 23 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/tests.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..796244e --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,22 @@ +--- +name: Python tests +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python: ["3.8", "3.9", "3.10", "3.11", "3.12"] + format: ["basic", "yaml", "hcl"] + + steps: + - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + - name: Install tox and any other packages + run: pip install tox + - name: Run tox + run: tox -e py-${{ matrix.format }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6384c1d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python -sudo: false -python: - - "2.7" - - "3.4" - - "3.5" - - "3.6" -# - "3.7" Not yet in Travis -install: - - pip install tox-travis -script: - - tox diff --git a/README.md b/README.md index 37af046..2aa0fe4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ confight [![PyPI](https://img.shields.io/pypi/v/confight.svg)](https://pypi.org/project/confight/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/confight.svg) -[![Build Status](https://travis-ci.org/Avature/confight.svg?branch=master)](https://travis-ci.org/Avature/confight) +![Build Status](https://github.com/Avature/confight/actions/workflows/tests.yaml/badge.svg) One simple way of parsing configs