-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (38 loc) · 1.19 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
chapel-run-function:
runs-on: ubuntu-latest
container:
image: chapel/chapel:latest
# env:
# ports:
# - 80
# volumes:
# - my_docker_volume:/volume_mount
# options: --cpus 1
steps:
- name: Install Python, pip, and Python libraries
run: |
apt-get update
apt-get install -y python3 python3-pip
pip3 install --no-cache-dir numpy torch
- uses: actions/checkout@v4
- name: Check for dockerenv file and Python version
run: |
ls /.dockerenv && echo Found dockerenv
echo "No dockerenv"
python3 --version || echo "Python not found!"
- name: Compile example/vgg
run: |
(cd examples/vgg && chpl test.chpl -M ../../src -M ../../lib -o vgg && python3 dump_weights.py && python3 process_img.py imgs/frog.jpg && ./vgg imgs/frog.chdata)
- name: Run correspondence tests
run: |
(cd test/correspondence && python3 correspondence.py) || echo "Wups! Correspondence bug or more likely test failure!"
- name:
run: |
echo "Pau!"