-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) Β· 1.27 KB
/
CI-testing-Rust-method.yml
File metadata and controls
47 lines (39 loc) Β· 1.27 KB
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
name: Run Tests on Implementation in Rust
on:
push:
branches: main
paths: ["rust-method/**", "tests/**", ".github/workflows/**"]
pull_request:
branches: main
paths: ["rust-method/**", "tests/**", ".github/workflows/**"]
schedule:
# Overnight: run tests every Thursday at 20:15 UTC
# cron <minute> <hour> <day-of-month> <day-of-week (sunday=0)>
- cron: "15 20 * * 4"
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust π¦ (stable)
# actions-rs/toolchain@v1 is now deprecated
uses: dtolnay/rust-toolchain@stable
- name: Install Python
run: |
sudo apt update
sudo apt install -y python3
- name: Run tests on implementation
working-directory: ./rust-method
run: |
python3 checker.py 2>&1 | tee test_results.txt
- name: Upload test logs as artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: checker-logs
path: |
./rust-method/test_results.txt
# Without `*` globbing, folders files will not be uploaded
tests/output-rust-method/*
retention-days: 5