diff --git a/.github/workflows/run-ci.yml b/.github/workflows/run-ci.yml new file mode 100644 index 0000000..c3f6909 --- /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 tests + run: | + make test \ 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]