-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (41 loc) · 1.16 KB
/
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
40
41
name: Test
on:
pull_request:
push:
schedule:
# first of each month
- cron: '0 0 1 * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
distro:
- debian11
- debian12
python-version:
- '3.9'
- '3.11'
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies for ${{ matrix.python-version }}
run: |
sudo pip3 install pylint PyYAML Jinja2
sudo pip3 install -U setuptools wheel ujson pip virtualenv
- name: Install make
run: sudo apt-get install make
- name: test install with virtualenv and run some tests
run: PYVERSIONS=python${{ matrix.python-version }} make testinstallvirtualenv
- name: install build deps
run: |
sudo apt-get update
sudo apt install python3-all python3-virtualenv dh-python debhelper lintian python3-restructuredtext-lint
- name: test readme
run: make testreadme
- name: test building deb package
run: make debunsigned