From d7fdc3e2481fc222bb7115ef4db2cc4d966934d4 Mon Sep 17 00:00:00 2001 From: Brett Jia Date: Sun, 30 Jun 2024 21:35:47 -0400 Subject: [PATCH] test cosmo on freebsd --- .github/workflows/build_python.yml | 35 +++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_python.yml b/.github/workflows/build_python.yml index 0474455c..bd28c365 100644 --- a/.github/workflows/build_python.yml +++ b/.github/workflows/build_python.yml @@ -444,6 +444,9 @@ jobs: - runner: ubuntu-latest arch: x86_64 os: Linux + - runner: ubuntu-latest + arch: x86_64 + os: FreeBSD - runner: windows-latest arch: x86_64 os: Windows @@ -469,11 +472,11 @@ jobs: 7z.exe x python/python-${{ inputs.python_version }}-cosmo-unknown.zip else unzip python/python-${{ inputs.python_version }}-cosmo-unknown.zip - chmod +x python-${{ inputs.python_version }}-cosmo-unknown/bin/python.com + chmod +x python-${{ inputs.python_version }}-cosmo-unknown/bin/python.com fi cd python-${{ inputs.python_version }}-cosmo-unknown - + ./bin/python.com --version ./bin/python.com -m sysconfig ./bin/python.com ${{ github.workspace }}/scripts/test.py @@ -481,4 +484,30 @@ jobs: if [[ "${{ inputs.run_tests }}" == "true" ]]; then ./bin/python.com -m test -v -ulargefile,network,decimal,cpu,subprocess,urlfetch,tzdata --timeout 60 - fi \ No newline at end of file + fi + + - name: Test in VM + if: ${{ matrix.os == 'FreeBSD' }} + uses: vmactions/freebsd-vm@v1 + with: + envs: 'RUN_TESTS DEBUG_CI VERBOSE_CI PORTABLE_PYTHON_BUILDSYSTEM_BRANCH' + usesh: true + copyback: false + prepare: | + pkg install -y bash + run: | + cat > /tmp/test.sh <