From 224d479d9e10ed4be6bc1b9069ea59f1e73e6c1f Mon Sep 17 00:00:00 2001 From: Luis Antonio Obis Aparicio Date: Wed, 6 Dec 2023 14:27:08 -0600 Subject: [PATCH] do not build wheels in test action --- .github/workflows/build-test.yaml | 63 ------------------------------- 1 file changed, 63 deletions(-) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 03a236b..f520c02 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -184,66 +184,3 @@ jobs: - name: Run tests run: | find ./tests -name "test_*.py" -exec python -m pytest -vv --reruns 3 --reruns-delay 30 --only-rerun "(?i)http|timeout|connection|socket|resolve" {} \; - - - name: Build Wheel - run: | - source ${{ github.workspace }}/geant4/bin/geant4.sh - python -m pip install build - python -m build --wheel . - - - name: Upload Wheel - uses: actions/upload-artifact@v3 - with: - name: wheels - path: dist/*.whl - - - name: Cache Wheel - uses: actions/cache@v3 - with: - path: dist - key: - dist-${{ matrix.python-version }}-${{ matrix.geant4-version }}-${{ - matrix.platform }}-${{ github.run_id }} - - wheel-test: - name: "Install wheel and test" - needs: [build-test] - timeout-minutes: 30 - runs-on: ${{ matrix.platform }} - strategy: - fail-fast: false - matrix: - platform: [ubuntu-latest, macos-latest] - geant4-version: - - 11.1.3 - python-version: - - "3.8" - - "3.9" - - "3.10" - - "3.11" - - "3.12" - steps: - - uses: actions/checkout@v4 - - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Restore wheel - uses: actions/cache@v3 - with: - path: dist - key: - dist-${{ matrix.python-version }}-${{ matrix.geant4-version }}-${{ - matrix.platform }}-${{ github.run_id }} - fail-on-cache-miss: true - - - name: Install wheel - run: | - python -m pip install dist/*.whl - - - name: Save datasets location to env - run: | - GEANT4_DATA_DIR=$(python -c "import geant4_python_application; print(geant4_python_application.datasets.data_dir)") - echo "GEANT4_DATA_DIR=${GEANT4_DATA_DIR}" >> $GITHUB_ENV