Skip to content

Commit

Permalink
add CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Feb 25, 2024
1 parent a600469 commit d6f4953
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI Build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
linux:
runs-on: ubuntu-22.04
steps:
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y python3-pip python3-tk xvfb libxrandr2 libegl1
pip3 install ogre-python
- uses: actions/checkout@v4
- name: Test
run: |
cd test
xvfb-run timeout --preserve-status 5s python3 ../ogre_mesh_viewer.py cube.obj
18 changes: 18 additions & 0 deletions test/cube.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Blender 4.0.2
# www.blender.org
o Cube
v 1.000000 1.000000 -1.000000
v 1.000000 -1.000000 -1.000000
v 1.000000 1.000000 1.000000
v 1.000000 -1.000000 1.000000
v -1.000000 1.000000 -1.000000
v -1.000000 -1.000000 -1.000000
v -1.000000 1.000000 1.000000
v -1.000000 -1.000000 1.000000
s 0
f 1 5 7 3
f 4 3 7 8
f 8 7 5 6
f 6 2 4 8
f 2 1 3 4
f 6 5 1 2

0 comments on commit d6f4953

Please sign in to comment.