Skip to content

Commit

Permalink
test cosmo on freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 committed Jul 1, 2024
1 parent 289213d commit d7fdc3e
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/build_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -469,16 +472,42 @@ 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
./bin/pip3
if [[ "${{ inputs.run_tests }}" == "true" ]]; then
./bin/python.com -m test -v -ulargefile,network,decimal,cpu,subprocess,urlfetch,tzdata --timeout 60
fi
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 <<EOF
unzip python/python-${{ inputs.python_version }}-cosmo-unknown.zip
cd python-${{ inputs.python_version }}-cosmo-unknown
chmod +x ./bin/python.com
./bin/python.com --version
./bin/python.com -m sysconfig
./bin/python.com ${{ github.workspace }}/scripts/test.py
./bin/pip3
if [[ "${{ inputs.run_tests }}" == "true" ]]; then
./bin/python -m test -v -ulargefile,network,decimal,cpu,subprocess,urlfetch,tzdata --timeout 60
fi
EOF
bash /tmp/test.sh

0 comments on commit d7fdc3e

Please sign in to comment.