Skip to content

Commit

Permalink
feat: PE-2 - Added a test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
konyaev_m committed Feb 24, 2024
1 parent 9877c19 commit e119f27
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 103 deletions.
20 changes: 20 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# .github/release.yml

changelog:
exclude:
labels:
- ignore-for-release
authors:
- octocat
categories:
- title: Breaking Changes 🛠
labels:
- Semver-Major
- breaking-change
- title: Exciting New Features 🎉
labels:
- Semver-Minor
- enhancement
- title: Other Changes
labels:
- "*"
41 changes: 41 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: tests

on:
pull_request:
paths-ignore:
- LICENSE
- AUTHORS
- README.md

push:
branches: [master]

jobs:
tests:
name: test with Py${{ matrix.python-version }}

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- name: Checkout changes
uses: actions/checkout@v2

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

- name: Install dependencies
run: |
pip3 install -e ".[tests]"
- name: Test with pytest
run: |
python -m pytest
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,3 @@ result = chart.run(
```bash
python -m pytest tests
```

### Правила семантического релиза

1. Для сборки в ci используется библиотека `go-semrel-gitlab-release`
2. В каждом реквесте должно быть хотя бы одно сообщение коммита оформленное по [формату](https://juhani.gitlab.io/go-semrel-gitlab/commit-message/)

Более подробно про библиотеку можно почитать [здесь](https://juhani.gitlab.io/go-semrel-gitlab/)
45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[project]
name = "ml-pipeline-engine"
readme = "README.md"
dynamic = ["version"]
requires-python = ">= 3.8"
dependencies = [
"networkx>=3.1,<4.0",
"python-ulid>=1.1.0,<2.0",
"cloudpickle>=2.2.1,<3.0",
]
authors = [
{name = "Konyaev Matvey"},
{name = "Vasiliy Pankov"},
]
description = "Фреймворк для работы с пайплайном ML моделей"
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]

[project.optional-dependencies]
tests = [
"pytest>=4.0.0",
"pytest-mock>=3.10.0",
"pre-commit>=2.0.0",
"flake8>=3.8.3",
"pytest-cov>=2.11.0",
"pytest-asyncio>=0.18.3",
]

[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "-s -vv"

[tool.setuptools.dynamic]
version = {attr = "version.version"}

[build-system]
requires = ["setuptools >= 69.0"] # nice
build-backend = "setuptools.build_meta"
10 changes: 0 additions & 10 deletions pytest.ini

This file was deleted.

43 changes: 0 additions & 43 deletions setup.py

This file was deleted.

15 changes: 0 additions & 15 deletions sonar-project.properties

This file was deleted.

28 changes: 0 additions & 28 deletions tox.ini

This file was deleted.

0 comments on commit e119f27

Please sign in to comment.