Skip to content

Commit

Permalink
disable eudsl-py
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Jan 30, 2025
1 parent e3fd4cf commit c16be2e
Showing 1 changed file with 75 additions and 75 deletions.
150 changes: 75 additions & 75 deletions .github/workflows/build_test_release_eudsl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,21 +178,21 @@ jobs:
$python3_command -m pip wheel "$PWD/projects/eudsl-nbgen" -w wheelhouse -v --no-build-isolation
fi
- name: "Build eudsl-py"
if: ${{ ! startsWith(matrix.os, 'windows') }}
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
if [[ "${{ matrix.os }}" == "ubuntu" ]]; then
export CCACHE_DIR=/host/$CCACHE_DIR
fi
$python3_command -m cibuildwheel "$PWD/projects/eudsl-py" --output-dir wheelhouse
else
export CMAKE_PREFIX_PATH=$PWD/llvm-install
export PIP_FIND_LINKS=$PWD/wheelhouse
$python3_command -m pip install eudsl-nbgen -f wheelhouse
$python3_command -m pip wheel "$PWD/projects/eudsl-py" -w wheelhouse -v --no-build-isolation
fi
# - name: "Build eudsl-py"
# if: ${{ ! startsWith(matrix.os, 'windows') }}
# run: |
#
# if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
# if [[ "${{ matrix.os }}" == "ubuntu" ]]; then
# export CCACHE_DIR=/host/$CCACHE_DIR
# fi
# $python3_command -m cibuildwheel "$PWD/projects/eudsl-py" --output-dir wheelhouse
# else
# export CMAKE_PREFIX_PATH=$PWD/llvm-install
# export PIP_FIND_LINKS=$PWD/wheelhouse
# $python3_command -m pip install eudsl-nbgen -f wheelhouse
# $python3_command -m pip wheel "$PWD/projects/eudsl-py" -w wheelhouse -v --no-build-isolation
# fi

# just to/make sure total build continues to work
- name: "Build all of eudsl"
Expand Down Expand Up @@ -287,65 +287,65 @@ jobs:
python -m pytest -rA --capture=tee-sys $TESTS_DIR
fi
test-eudsl-py:

needs: [build-eudsl]

strategy:
fail-fast: false
matrix:
runs-on: [
"ubuntu-22.04",
"ubuntu-22.04-arm",
"macos-14"
# "windows-2019"
]
python-version: [
# "3.9", "3.10", "3.11",
"3.12"]
include: [
{runs-on: "ubuntu-22.04", name: "ubuntu_x86_64", os: "ubuntu"},
{runs-on: "ubuntu-22.04-arm", name: "ubuntu_aarch64", os: "ubuntu"},
# TODO(max): enable on windows by statically linking
# {runs-on: "windows-2019", name: "windows_x86_64", os: "windows"},
{runs-on: "macos-14", name: "macos_arm64", os: "macos"}
]

runs-on: ${{ matrix.runs-on }}

name: "Test eudsl-py ${{ matrix.name }}"

defaults:
run:
shell: bash

steps:
- name: "Check out repository"
uses: actions/checkout@v4.2.2
with:
submodules: false

- name: "Install Python"
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"

- uses: actions/download-artifact@v4
with:
name: eudsl_${{ matrix.name }}_artifact
path: wheelhouse

- name: "Install eudsl-py"
run: |
python -m pip install pytest
python -m pip install eudsl-py -f wheelhouse
- name: "Test eudsl-py"
run: |
export TESTS_DIR="$PWD/projects/eudsl-py/tests"
python -m pytest -rA --capture=tee-sys $TESTS_DIR
# test-eudsl-py:
#
# needs: [build-eudsl]
#
# strategy:
# fail-fast: false
# matrix:
# runs-on: [
# "ubuntu-22.04",
# "ubuntu-22.04-arm",
# "macos-14"
# # "windows-2019"
# ]
# python-version: [
# # "3.9", "3.10", "3.11",
# "3.12"]
# include: [
# {runs-on: "ubuntu-22.04", name: "ubuntu_x86_64", os: "ubuntu"},
# {runs-on: "ubuntu-22.04-arm", name: "ubuntu_aarch64", os: "ubuntu"},
# # TODO(max): enable on windows by statically linking
# # {runs-on: "windows-2019", name: "windows_x86_64", os: "windows"},
# {runs-on: "macos-14", name: "macos_arm64", os: "macos"}
# ]
#
# runs-on: ${{ matrix.runs-on }}
#
# name: "Test eudsl-py ${{ matrix.name }}"
#
# defaults:
# run:
# shell: bash
#
# steps:
# - name: "Check out repository"
# uses: actions/checkout@v4.2.2
# with:
# submodules: false
#
# - name: "Install Python"
# uses: actions/setup-python@v4
# with:
# python-version: "${{ matrix.python-version }}"
#
# - uses: actions/download-artifact@v4
# with:
# name: eudsl_${{ matrix.name }}_artifact
# path: wheelhouse
#
# - name: "Install eudsl-py"
# run: |
#
# python -m pip install pytest
# python -m pip install eudsl-py -f wheelhouse
#
# - name: "Test eudsl-py"
# run: |
#
# export TESTS_DIR="$PWD/projects/eudsl-py/tests"
# python -m pytest -rA --capture=tee-sys $TESTS_DIR

test-eudsl-llvmpy:

Expand Down Expand Up @@ -413,7 +413,7 @@ jobs:
if: ${{ github.event_name == 'workflow_dispatch' }}
needs: [
test-eudsl-tblgen,
test-eudsl-py,
# test-eudsl-py,
test-eudsl-llvmpy
]
runs-on: "ubuntu-22.04"
Expand Down

0 comments on commit c16be2e

Please sign in to comment.