forked from etsinko/pymonoprice
-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (47 loc) · 1.13 KB
/
ci.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
40
41
42
43
44
45
46
47
48
name: CI
on:
workflow_dispatch:
push:
pull_request:
jobs:
unit-test:
name: Python ${{ matrix.python-version}} unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
# - name: Run unit tests
# run: python -m unittest
mypy-test:
name: mypy test
runs-on: ubuntu-latest
env:
python-version: "3.13"
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install mypy
# - name: Run mypy test
# run: mypy -p pyxantech