Skip to content

Run Python test suite #792

Run Python test suite

Run Python test suite #792

Workflow file for this run

# 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.11] # oldest and most recent version supported
name: Run Python test suite
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |-
set -x
python -m venv venv
source venv/bin/activate
pip install \
--disable-pip-version-check \
--ignore-installed \
pip setuptools wheel
pip install -r requirements.txt
pip check
diff -u0 \
<(sed -e '/^#/d' -e '/^$/d' requirements.txt | sort -f) \
<(pip freeze | sort -f)
- name: Run Python test suite
run: |-
set -x
source venv/bin/activate
python --version
coverage run -m pytest binary_gentoo
coverage report