Skip to content

Commit 1dd9927

Browse files
authored
Add CI pipeline (#9)
Adds a basic CI pipeline to test installation as a Github workflow. Note: GPU tests are not included due to the lack of free GPU runners. Signed-off-by: Maximilian Naumann <[email protected]>
1 parent 22fa1fe commit 1dd9927

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Continuous Integration
2+
3+
env:
4+
DEBIAN_FRONTEND: noninteractive
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}:${{ github.head_ref || github.ref }}
13+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
14+
15+
jobs:
16+
ci:
17+
runs-on: ubuntu-latest
18+
container:
19+
image: ubuntu:24.04
20+
steps:
21+
- name: Install prerequisites
22+
run: |
23+
apt-get update
24+
apt-get install -y --no-install-recommends \
25+
build-essential \
26+
ca-certificates \
27+
curl \
28+
gcc-11 g++-11 \
29+
git \
30+
libglib2.0-0
31+
32+
- name: Install conda
33+
run: |
34+
curl -o ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
35+
bash ~/miniconda.sh -b -p /opt/conda
36+
rm ~/miniconda.sh
37+
/opt/conda/bin/conda install -y python=${PYTHON_VERSION}
38+
/opt/conda/bin/conda clean -ya
39+
echo "/opt/conda/bin" >> $GITHUB_PATH
40+
41+
- name: Checkout repo
42+
uses: actions/checkout@v4
43+
with:
44+
submodules: recursive
45+
46+
- name: Install 3dgrut including all dependencies
47+
run: |
48+
git config --global --add safe.directory "$(pwd)"
49+
./install_env.sh 3dgrut WITH_GCC11
50+
env:
51+
TORCH_CUDA_ARCH_LIST: "7.5" # random arch for testing install
52+
53+
- name: Smoketest - python train.py --help # better (smoke) testing requires a GPU
54+
run: |
55+
conda run -n 3dgrut python train.py --help

0 commit comments

Comments
 (0)