-
Notifications
You must be signed in to change notification settings - Fork 78
32 lines (25 loc) · 795 Bytes
/
Copy pathall-tests.yml
File metadata and controls
32 lines (25 loc) · 795 Bytes
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
name: Test workflow
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository (full history)
uses: actions/checkout@v2
with:
fetch-depth: 0 # ← fetch all branches and commits
- name: Ensure master/main exist locally
run: |
# Try to fetch both master and main so that one of them is guaranteed to exist
git fetch origin master:master || true
git fetch origin main:main || true
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install CMake and Make
run: sudo apt-get update && sudo apt-get install -y cmake make
- name: Run tests
run: |
chmod +x run_tests.sh
./run_tests.sh