Skip to content

Commit

Permalink
Only upload artifacts on pushes to master (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
josh146 committed Mar 3, 2021
1 parent ac4cd5a commit 5b48b7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ env:

CIBW_TEST_REQUIRES: numpy scipy pytest pytest-cov pytest-mock flaky

# Note: breaking up tests so that no test cases hang on Windows, to be reverted
CIBW_TEST_COMMAND: |
pl-device-test --device=lightning.qubit --skip-ops -x --tb=short --no-flaky-report
pl-device-test --device=lightning.qubit --skip-ops -x --tb=short --no-flaky-report -k "not test_four_qubit_random_circuit"
pl-device-test --device=lightning.qubit --skip-ops -x --tb=short --no-flaky-report -k "test_four_qubit_random_circuit"
jobs:
Expand Down Expand Up @@ -85,11 +87,6 @@ jobs:
name: ${{ runner.os }}-wheels.zip
path: ./wheelhouse/*.whl

- uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-wheels
path: ./wheelhouse/*.whl

upload-wheels:
runs-on: ubuntu-latest
needs: [build-wheels]
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ env:

CIBW_ENVIRONMENT_WINDOWS: EIGEN_INCLUDE_DIR="C:\\eigen-3.3.7\\"

# CIBW_TEST_COMMAND_WINDOWS: |
# pytest "C:\\pennylane\\pennylane\\devices\\tests" --device=lightning.qubit --skip-ops -x --tb=short --no-flaky-report

# Python build settings

CIBW_BEFORE_BUILD: |
Expand Down Expand Up @@ -85,14 +82,12 @@ jobs:
Invoke-WebRequest -Uri "https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip" -UseBasicParsing -OutFile C:\eigen3.zip
& "C:\\Program Files\\7-Zip\\7z.exe" x C:\eigen3.zip -o"C:\" -y
# New-Item -ItemType directory -Path "C:\\pennylane"
# & git clone https://github.com/PennyLaneAI/pennylane.git "C:\\pennylane"

- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2
if: github.ref == 'refs/heads/master'
with:
name: ${{ runner.os }}-wheels.zip
path: ./wheelhouse/*.whl

0 comments on commit 5b48b7f

Please sign in to comment.