From 95641810fce313f2a2b4dd7866b17dfc2afd2cc5 Mon Sep 17 00:00:00 2001 From: Jacob Rief Date: Tue, 11 Jun 2024 10:37:50 +0200 Subject: [PATCH] Separate python tests from jest tests Separate python tests from jest tests --- .github/workflows/testparser.yml | 36 ++++++++++++++++++++++++++++++++ .github/workflows/tests.yml | 3 +-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/testparser.yml diff --git a/.github/workflows/testparser.yml b/.github/workflows/testparser.yml new file mode 100644 index 00000000..8b4d5490 --- /dev/null +++ b/.github/workflows/testparser.yml @@ -0,0 +1,36 @@ +name: Test django-formset's parsers + +on: + push: + branches: + - releases/* + paths: + - '/assets/*.pegjs' + - '/client/tests/*.ts' + pull_request: + branches: + - develop + paths: + - '/assets/*.pegjs' + - '/client/tests/*.ts' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: ["18.x"] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Build Parsers + run: | + npm run tag-attributes + npm run function-code + - name: Run tests + run: | + npm run testclient diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 409203c0..702a78c3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -57,7 +57,6 @@ jobs: run: | npm run ${{ matrix.build-client }} npm run compilescss - - name: Run tests + - name: Test with pytest run: | python -m pytest testapp - npm run testclient