-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (49 loc) · 1.45 KB
/
mepo.yaml
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
49
50
51
52
53
54
55
56
57
name: mepo - unit testing and linting
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11', '3.12', 'pypy-3.9', 'pypy-3.10']
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
timeout-minutes: 5
- name: Run mepo unit tests
run: python tests/test_mepo_commands.py -v
timeout-minutes: 5
- name: Run mepo3 unit tests
run: python tests/test_mepo3_commands.py -v
timeout-minutes: 5
lint:
runs-on: ubuntu-latest
name: Lint mepo
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
timeout-minutes: 5
- name: Run pylint on mepo
run: pylint --exit-zero src/mepo
timeout-minutes: 5
- name: Run pylint on mepo3
run: pylint --exit-zero src/mepo3
timeout-minutes: 5