Nightly Tests #108
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
name: Nightly Tests | |
on: | |
schedule: | |
- cron: '0 0 * * *' # This cron schedule runs every night at midnight UTC | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: ubuntu:latest | |
steps: | |
- name: Install dependencies | |
run: | | |
set -e | |
apt update | |
apt install curl qemu-system-arm python3-pytest make gcc gcc-arm-none-eabi git -y | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y | |
export PATH=$PATH:$HOME/.cargo/bin/ | |
rustup toolchain install nightly-2024-02-04 --allow-downgrade --profile minimal --component clippy | |
rustup target add thumbv7m-none-eabi | |
cargo install rustfilt | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
- name: Run tests | |
working-directory: tests | |
run: PATH=$PATH:$HOME/.cargo/bin/ pytest-3 test.py |