2022-02-16 20:01:49 -05:00
|
|
|
name: .mpy file format and tools
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/*.yml'
|
2022-11-22 18:06:09 -05:00
|
|
|
- 'examples/**'
|
|
|
|
- 'tests/**'
|
2022-02-16 20:01:49 -05:00
|
|
|
- 'tools/**'
|
|
|
|
|
2022-12-13 13:57:34 -05:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-02-16 20:01:49 -05:00
|
|
|
jobs:
|
|
|
|
test:
|
2022-11-22 18:05:54 -05:00
|
|
|
runs-on: ubuntu-20.04 # use 20.04 to get python2
|
2022-02-16 20:01:49 -05:00
|
|
|
steps:
|
2022-11-10 10:50:38 -05:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-16 20:01:49 -05:00
|
|
|
- name: Install packages
|
|
|
|
run: source tools/ci.sh && ci_mpy_format_setup
|
|
|
|
- name: Test mpy-tool.py
|
|
|
|
run: source tools/ci.sh && ci_mpy_format_test
|