Skip to content

Commit

Permalink
CI: Skeleton setup to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnor committed Aug 11, 2024
1 parent 6e711ba commit 536dd12
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [jonnor]

43 changes: 43 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

name: Run tests

on: [push, pull_request]

jobs:
test_micropython:
runs-on: ubuntu-latest
env:
MICROPYTHON_BIN: ./micropython/ports/unix/build-standard/micropython
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: micropython/micropython
path: micropython
ref: master
- name: Setup MicroPython X86
working-directory: micropython
run: source tools/ci.sh && ci_unix_32bit_setup && ci_unix_standard_build

- name: Run tests
run: |
MICROPYPATH=./ micropython tests/test_npyfile.py
test_cpython:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10]

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Run tests
run: |
PYTHONPATH=./ python tests/test_npyfile.py

0 comments on commit 536dd12

Please sign in to comment.