From 5de4feaadab19e392ad9ad821e105575dd6544ad Mon Sep 17 00:00:00 2001 From: Maksym Balatsko Date: Tue, 19 Sep 2023 10:25:42 +0200 Subject: [PATCH] setup ci --- .github/workflows/run-ci.yml | 25 +++++++++++++++++++++++++ Makefile | 8 ++++++++ README.md | 6 +----- pyproject.toml | 2 +- 4 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/run-ci.yml create mode 100644 Makefile diff --git a/.github/workflows/run-ci.yml b/.github/workflows/run-ci.yml new file mode 100644 index 0000000..2433f89 --- /dev/null +++ b/.github/workflows/run-ci.yml @@ -0,0 +1,25 @@ +name: Run CI + +on: [pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11"] + + steps: + - 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: | + python -m pip install --upgrade pip + make install + - name: Run make + run: | + make \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..14b9131 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +install: + pip install -e .[all] + +upgrade: + pip install --upgrade -e .[all] + +test: + python -m pytest \ No newline at end of file diff --git a/README.md b/README.md index 75237d6..67a5286 100644 --- a/README.md +++ b/README.md @@ -17,11 +17,7 @@ pip install pykalman-bardo Alternatively, you can setup from source: ```bash -# pip -pip install -e . - -# poetry -poetry pyproject.toml +pip install . ``` ## Usage diff --git a/pyproject.toml b/pyproject.toml index 49664e3..351ee77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ Documentation = "https://pykalman.github.io/" file = "COPYING" [build-system] -requires = ["setuptools", "wheel", "toml", "build"] +requires = ["setuptools", "wheel", "build"] build-backend = "setuptools.build_meta" [tool.setuptools]