forked from TA-Lib/ta-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (54 loc) · 1.53 KB
/
dev-nightly-tests.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Periodic tests of latest dev branch
#
# This is for early detection of breaking changes.
#
name: dev nightly tests
# Controls when the workflow will run
on:
schedule:
- cron: "0 5 * * *" # every day 5AM
workflow_dispatch:
jobs:
test:
name: Test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-2022]
steps:
- name: Checkout dev Branch
uses: actions/checkout@v4
with:
ref: dev
- name: Install build tools (Linux)
if: runner.os == 'Linux'
shell: bash
run: |
sudo apt update && sudo apt install -y automake libtool autogen mcpp openjdk-21-jdk
- name: Install Rust Toolchain (Linux)
if: runner.os == 'Linux'
uses: dtolnay/rust-toolchain@stable
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Prepare environment
shell: bash
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
echo "PYTHON=python3" >> $GITHUB_ENV
else
echo "PYTHON=python" >> $GITHUB_ENV
fi
- name: Build dist assets (as needed)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
$PYTHON $GITHUB_WORKSPACE/scripts/package.py
- name: Test dist assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
$PYTHON $GITHUB_WORKSPACE/scripts/test-dist.py