From ed36119b04518bdea02114316c1fab40cc42d7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20G=C3=B6ries?= <43136580+dgoeries@users.noreply.github.com> Date: Fri, 15 Nov 2024 03:07:32 +0100 Subject: [PATCH 1/2] Create python-app.yml --- .github/workflows/python-app.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..45a3527 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,34 @@ +name: downsample package + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.10", "3.11", "3.12"] + + steps: + - 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 + python -m pip install setuptools + python -m pip install flake8 pytest + - name: Build package + run: | + python -m pip install . -v + - name: Test with pytest + run: | + pytest From 2d04d2df28659f9b8aebda6090039b138b0681be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20G=C3=B6ries?= <43136580+dgoeries@users.noreply.github.com> Date: Fri, 15 Nov 2024 03:50:56 +0100 Subject: [PATCH 2/2] Update python-app.yml --- .github/workflows/python-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 45a3527..51c8a43 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -28,7 +28,7 @@ jobs: python -m pip install flake8 pytest - name: Build package run: | - python -m pip install . -v + python -m pip install -e . -v - name: Test with pytest run: | pytest