Skip to content

Commit

Permalink
do not build wheels in test action
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Dec 6, 2023
1 parent 973ef47 commit 224d479
Showing 1 changed file with 0 additions and 63 deletions.
63 changes: 0 additions & 63 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 224d479

Please sign in to comment.