diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 5fc2c47..16c08e9 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -22,6 +22,7 @@ jobs: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 + if: github.ref == 'refs/heads/master' with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -49,7 +50,7 @@ jobs: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} needs: [ test_code ] - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/test_wheels' strategy: matrix: os: [ ubuntu-latest, windows-2019, macos-13 ] @@ -91,7 +92,7 @@ jobs: name: Build source distribution needs: [ test_code ] runs-on: ubuntu-latest - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/test_wheels' steps: - uses: actions/checkout@v2 - name: Set up Python