Skip to content

Commit

Permalink
include CI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
marcelmbn committed Aug 11, 2024
1 parent 24c3c31 commit 40508a9
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions src/mlmgen/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 40508a9

Please sign in to comment.