-
Notifications
You must be signed in to change notification settings - Fork 22
50 lines (44 loc) · 1.5 KB
/
tests.yaml
File metadata and controls
50 lines (44 loc) · 1.5 KB
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
# This file is part of the EESSI build-and-deploy bot,
# see https://github.com/EESSI/eessi-bot-software-layer
#
# The bot helps with requests to add software installations to the
# EESSI software layer, see https://github.com/EESSI/software-layer
#
# author: Kenneth Hoste (@boegel)
# author: Alan O'Cais (@ocaisa)
# author: Thomas Roeblitz (@trz42)
#
# license: GPLv2
#
name: Run tests
on: [push, pull_request]
# Declare default permissions as read only.
permissions: read-all
jobs:
test:
runs-on: ubuntu-24.04
strategy:
matrix:
# Waitress 3.0.1 does not support Python 3.8 or older
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: set up Python ${{ matrix.python-version }}
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install required Python packages + pytest + flake8
run: |
python -m pip install -r requirements.txt
python -m pip install -r .github/workflows/requirements-lock.txt --require-hashes
- name: Run test suite (without coverage)
run: |
./test.sh --verbose
- name: Run test suite (with coverage)
run: |
./test.sh -q --cov=$PWD
- name: Run flake8 to verify PEP8-compliance of Python code
run: |
flake8