diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0c93f6..64e5adc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,29 +38,25 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install npm dependencies - run: sudo npm install -g jshint stylelint - - - name: Upgrade python system packages - run: pip install -U pip wheel setuptools - - - name: Install openwisp-controller + - name: Install Dependencies + id: deps run: | + pip install -U pip wheel setuptools pip install -U -e .[test] - - - name: Install test dependencies - run: | pip install ${{ matrix.django-version }} + sudo npm install -g jshint stylelint - name: QA checks run: | ./run-qa-checks - name: Tests + if: ${{ !cancelled() && steps.deps.conclusion == 'success' }} run: | coverage run --source=flat_json_widget runtests.py - name: Upload Coverage + if: ${{ success() }} run: coveralls --service=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}