Skip to content

ci: Unit tests and workflow to run them #2

ci: Unit tests and workflow to run them

ci: Unit tests and workflow to run them #2

Workflow file for this run

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-latest
name: Run Tests
steps:
- name: checkout repo content
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install MicroPython and run tests
run: |
DLURL="https://github.com/atsign-foundation/micropython/releases/download/"
ATMPRELDIR="1.20.0_3faded33f_AES_CTR/"
ATMPRELBIN="micropython_1.20.0_3faded33f_linux_x64.tgz"
wget ${DLURL}${ATMPRELDIR}${ATMPRELBIN}
tar -xvf ${ATMPRELBIN}
export MICROPY_MICROPYTHON="$(pwd)/micropython"
cd tests
./run-tests.py -d atsign