From 691888ec1e865f17c9087ec1ed9267facd34d4cf Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 22 Jun 2021 20:49:49 +1000 Subject: [PATCH 1/2] Fixes for python integration --- .github/workflows/python.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index 478b05c9f8..caf374864e 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -2,10 +2,11 @@ name: Python Bindings -on: - push: - branches: - - 'master' +#on: +# push: +# branches: +# - 'master' +on: ["pull_request"] jobs: @@ -32,7 +33,7 @@ jobs: invoke migrate - name: Download Python Code run: | - git clone --depth 1 https://github.com/inventee/inventree-python ./inventree-python + git clone --depth 1 https://github.com/inventree/inventree-python ./inventree-python - name: Start Server run: | invoke import-records -f ./inventree-python/test/test_data.json From 3884ab0df2c47ab6d2077f6acf06a684e3222a62 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 22 Jun 2021 20:58:29 +1000 Subject: [PATCH 2/2] Change workflow target --- .github/workflows/python.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index caf374864e..7e32685af1 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -2,11 +2,14 @@ name: Python Bindings -#on: -# push: -# branches: -# - 'master' -on: ["pull_request"] +on: + push: + branches: + - master + + pull_request: + branches-ignore: + - l10* jobs: