-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (37 loc) · 1.21 KB
/
run_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
name: RunTests
# Runs the workflow on the below events:
# 1. on pull request raised to trunk branch.
# 2. on push event to trunk branch.
on:
push:
branches:
- trunk
pull_request:
branches:
- trunk
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
lint-markdown:
runs-on: ubuntu-20.04
name: Run Tests
steps:
- name: checkout repo content
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install MicroPython and run tests
run: |
DLURL="https://github.com/atsign-foundation/micropython/releases/download/"
ATMPRELDIR="1.22.0_g099e9a1a0_AES_CTR/"
ATMPRELBIN="micropython_1.22.0_g099e9a1a0_linux_x64.tgz"
wget ${DLURL}${ATMPRELDIR}${ATMPRELBIN}
tar -xvf ${ATMPRELBIN}
export MICROPY_MICROPYTHON="$(pwd)/micropython"
cd tests
./run-tests.py -d atsign
tar -cvzf results.tgz results
- name: Upload results
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: atsign tests
path: tests/results.tgz
retention-days: 7