Skip to content

Commit

Permalink
split to 2 CI jobs, cpp and python
Browse files Browse the repository at this point in the history
  • Loading branch information
lancerts committed Jan 22, 2024
1 parent 2e6bc0c commit a9ea7b8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main_cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run Examples

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# Every day at 3:00am
- cron: '0 3 * * *'


jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11

- name: Install Cmake, Make, g++, MKL
run: |
sudo apt update && sudo apt upgrade
sudo apt install cmake g++ make
sudo apt-get -y install intel-mkl
- name: Run Cpp Tests
run: |
chmod +x ./run_cpp_examples.sh
./run_cpp_examples.sh "get_libtorch,run_all,clean"
14 changes: 2 additions & 12 deletions .github/workflows/main.yml → .github/workflows/main_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
test:

runs-on: ubuntu-latest

steps:
Expand All @@ -21,16 +21,6 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install Cmake, Make, g++, MKL
run: |
sudo apt update && sudo apt upgrade
sudo apt install cmake g++ make
sudo apt-get -y install intel-mkl
- name: Run Cpp Tests
run: |
chmod +x ./run_cpp_examples.sh
./run_cpp_examples.sh "get_libtorch,run_all,clean"

- name: Install PyTorch
run: |
Expand All @@ -39,7 +29,7 @@ jobs:
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# Maybe use the CUDA 10.2 version instead?
# pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html
- name: Run Python Tests
- name: Run Tests
run: |
./run_python_examples.sh "install_deps,run_all,clean"
- name: Open issue on failure
Expand Down

0 comments on commit a9ea7b8

Please sign in to comment.