-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (36 loc) · 1002 Bytes
/
test.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: Testing
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.12']
steps:
- uses: actions/checkout@v4
with:
# https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements_dev.txt
python -m pip install tox tox-gh-actions
- name: Install in dev mode
run: python -m pip install -e . -vv
- name: Lint with pylint
run: pylint teensytoany
- name: isort
run: isort --check-only .
- name: teensytoany_programmer
run: teensytoany_programmer --help
- name: Test with tox
run: tox