From a0a8675ebdc2632be62192e2c4a91a1cde29a148 Mon Sep 17 00:00:00 2001 From: mediaminister Date: Mon, 16 Sep 2024 14:58:01 +0200 Subject: [PATCH] Update CI workflow --- .github/workflows/ci.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f72d0de0..36cb64bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,13 @@ name: CI on: -- pull_request -- push + push: + branches: + - master + pull_request_target: + types: [ opened, edited, synchronize ] + branches: + - master jobs: tests: name: Add-on testing @@ -32,11 +37,17 @@ jobs: steps: - name: Check out ${{ github.sha }} from repository ${{ github.repository }} uses: actions/checkout@v4 + - name: Ignore certificate verification on Python 3.5 + shell: bash + run: > + # INSECURE!! But it should be OK for CI tests. + echo 'PIP_TRUSTED_HOST=pypi.python.org pypi.org + files.pythonhosted.org' >>$GITHUB_ENV - name: Setup PYTHONPATH (windows) if: contains(matrix.os, 'windows') run: echo "PYTHONPATH=${env:PYTHONPATH};${env:GITHUB_WORKSPACE};${env:GITHUB_WORKSPACE}\resources\lib;${env:GITHUB_WORKSPACE}\tests" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append - - name: Set up Python ${{ matrix.python-version }} - uses: MatteoH2O1999/setup-python@v3 + - name: 'Set up Python ${{ matrix.python-version }}' + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies (linux)