Skip to content

Fix build on py11

Fix build on py11 #83

Workflow file for this run

name: ubuntu-basic
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run-unit-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
container: docker.io/library/ubuntu:22.04
steps:
- uses: actions/checkout@v2
- name: Install bazel
run: |
apt-get update
apt-get install -yq wget gcc g++ python3.11 zlib1g-dev zip libuv1.dev
apt-get install -yq pip
wget "https://github.com/bazelbuild/bazel/releases/download/6.5.0/bazel_6.5.0-linux-x86_64.deb" -O bazel_6.5.0-linux-x86_64.deb
dpkg -i bazel_6.5.0-linux-x86_64.deb
- name: Install dependencies
run: |
python3 -m pip install virtualenv
python3 -m virtualenv -p python3.11 py3
. py3/bin/activate
which python
pip install pytest torch
pip install ray
- name: Build and test
run: |
. py3/bin/activate
python3 setup.py install
cd tests && python3 -m pytest *