add tests for asyncio #6
Workflow file for this run
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
# SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors) | |
# | |
# SPDX-License-Identifier: MIT | |
name: Run tests | |
on: [pull_request, push] | |
jobs: | |
run: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: false | |
fetch-depth: 1 | |
- name: Set up circuitpython repository | |
uses: actions/checkout@v3 | |
with: | |
repository: adafruit/circuitpython | |
path: ./circuitpython/ | |
submodules: false | |
fetch-depth: 1 | |
fetch-tags: true | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: CircuitPython dependencies | |
id: cp-deps | |
run: python tools/ci_fetch_deps.py tests | |
shell: bash | |
working-directory: ./circuitpython/ | |
- name: Install python dependencies | |
run: pip install -r requirements-dev.txt | |
shell: bash | |
working-directory: ./circuitpython/ | |
- name: Build unix port | |
run: make -C ports/unix VARIANT=coverage -j2 | |
working-directory: ./circuitpython/ | |
- name: Run tests | |
run: ./run_tests.py | |
working-directory: tests | |
env: | |
MICROPY_CPYTHON3: python3.8 | |
MICROPY_MICROPYTHON: ../circuitpython/ports/unix/build-coverage/micropython | |
MICROPYPATH: ../:../circuitpython/frozen/Adafruit_CircuitPython_Ticks |