From 40508a928361ca57b6048dfdb5197d92835dd154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Sun, 11 Aug 2024 18:02:30 +0200 Subject: [PATCH] include CI workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- .github/workflows/ci.yml | 54 +++++++++++++++++++++++++++++++++++++++ src/mlmgen/__version__.py | 4 +-- 2 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..41f50a5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,54 @@ +name: CI + +on: + push: + branches: + - main + paths-ignore: + - "docs/**" + - "*.md" + - "*.rst" + + pull_request: + branches: + - main + paths-ignore: + - "docs/**" + - "*.md" + - "*.rst" + + workflow_dispatch: + +jobs: + tox: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox + + # with '-e py' tox runs the python version of the current environment + - name: Unittests with tox + run: tox -e py + + # Coverage does not work for private repos + # - name: Upload coverage to Codecov + # uses: codecov/codecov-action@v4 + # if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' + # with: + # files: ./coverage.xml # optional diff --git a/src/mlmgen/__version__.py b/src/mlmgen/__version__.py index 84bc395..b992aa5 100644 --- a/src/mlmgen/__version__.py +++ b/src/mlmgen/__version__.py @@ -13,5 +13,5 @@ __version_tuple__: VERSION_TUPLE version_tuple: VERSION_TUPLE -__version__ = version = "0.1.dev2+g9e455ce.d20240810" -__version_tuple__ = version_tuple = (0, 1, "dev2", "g9e455ce.d20240810") +__version__ = version = "0.1.dev4+g24c3c31.d20240811" +__version_tuple__ = version_tuple = (0, 1, "dev4", "g24c3c31.d20240811")