forked from TA-Lib/ta-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Github Action dev-nightly-tests.yml
- Loading branch information
1 parent
51ceaad
commit fdb5322
Showing
1 changed file
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# 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-get update && sudo apt-get install -y automake libtool autogen mcpp | ||
|
||
- name: Install build tools (Windows) | ||
if: runner.os == 'Windows' | ||
run: choco install mcpp -y | ||
shell: bash | ||
|
||
- name: Install Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: "21" | ||
|
||
- name: Install Rust Toolchain | ||
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 |