-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.39 KB
/
test_suite.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
# Copyright (C) 2021 Sebastian Pipping <sebastian@pipping.org>
# Licensed under GNU Affero GPL version 3 or later
name: Run Python test suite
on:
pull_request:
push:
schedule:
- cron: '0 3 * * 5' # Every Friday at 3am
jobs:
build_and_test:
strategy:
matrix:
python-version: [3.8, 3.12] # oldest and most recent version supported
name: Run Python test suite
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |-
set -x
python3 -m venv venv
source venv/bin/activate
pip3 install \
--disable-pip-version-check \
--ignore-installed \
pip setuptools wheel
pip3 install -r requirements.txt
pip3 check
diff -u0 \
<(sed -e '/^#/d' -e '/^$/d' requirements.txt | sort -f) \
<(pip3 freeze | sed -e '/^setuptools==/d' -e '/^wheel==/d' | sort -f)
- name: Run Python test suite
run: |-
set -x
source venv/bin/activate
python3 --version
coverage run -m pytest binary_gentoo
coverage report