diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..64cf68c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-20.04 + python-version: "3.6" + - os: ubuntu-22.04 + python-version: "3.12" + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - run: pip install --editable .[dev] + - run: python csb/build.py -o . diff --git a/README.rst b/README.rst index bc34850..4d1aa18 100644 --- a/README.rst +++ b/README.rst @@ -112,6 +112,6 @@ CSB is open source and distributed under OSI-approved MIT license. ------------ -.. image:: https://travis-ci.org/csb-toolbox/CSB.svg?branch=master -   :target: https://travis-ci.org/csb-toolbox +.. image:: https://github.com/csb-toolbox/CSB/workflows/CI/badge.svg +   :target: https://github.com/csb-toolbox/CSB/actions diff --git a/setup.py b/setup.py index 99c1f2a..f46ed59 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ LICENSE = 'MIT' REQUIREMENTS = open("requirements.txt", encoding="utf-8").readlines() -DEV_REQUIREMENTS = [] +DEV_REQUIREMENTS = ["setuptools"] v = {} exec(open(ROOT + "/__init__.py", encoding="utf-8").read(), v)