-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (57 loc) · 2.2 KB
/
run-tests-push.yml
File metadata and controls
61 lines (57 loc) · 2.2 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
51
52
53
54
55
56
57
58
59
60
61
name: Run Tests (On Push)
on:
push:
jobs:
run-tests-ubuntu-22_04-python-3_10:
runs-on: ubuntu-22.04
name: Ubuntu 22.04, Python 3.10
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.10"
cache: 'pip'
- run: sudo apt install xvfb
- run: pip install --upgrade pip
- run: pip install .[dev]
- run: xvfb-run pytest -v -rP --doctest-modules countess/ tests/
run-tests-ubuntu-22_04-python-3_11_from_apt:
runs-on: ubuntu-22.04
name: Ubuntu 22.04, Python 3.11 from Apt
steps:
- uses: actions/checkout@v6
- run: sudo apt update -y
- run: sudo apt install python3.11-full python3-pip xvfb
- run: python3.11 -m pip install --upgrade pip
- run: python3.11 -m pip install -e .[dev]
- run: xvfb-run python3.11 -m pytest -v -rP --doctest-modules countess/ tests/
run-tests-ubuntu-24_04-python-3_12_from_apt:
runs-on: ubuntu-24.04
name: Ubuntu 24.04, Python 3.12 from Apt
steps:
- uses: actions/checkout@v6
- run: sudo apt update -y
- run: sudo apt-get -U upgrade -y
- run: sudo apt install python3.12-full python3-pip xvfb
- run: python3.12 -m venv /tmp/venv
- run: /tmp/venv/bin/python -m pip install --upgrade pip
- run: /tmp/venv/bin/python -m pip install -e .[dev]
- run: xvfb-run /tmp/venv/bin/python -m pytest -v -rP --doctest-modules countess/ tests/
run-tests-ubuntu-24_04-python-3_13:
runs-on: ubuntu-24.04
name: Ubuntu 24.04, Python 3.x
steps:
- run: sudo apt update -y
- run: sudo apt-get -U upgrade -y
- uses: actions/checkout@v4
- uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: 'pip'
- run: sudo apt install xvfb libopenblas0 libopenblas-dev
- run: python3 -m venv /tmp/venv
- run: /tmp/venv/bin/python -m pip install --upgrade pip
- run: /tmp/venv/bin/python -m pip install -e .[dev]
- run: xvfb-run /tmp/venv/bin/coverage run --source countess -m pytest -v -rP --doctest-modules countess/ tests/
- run: echo '### Coverage Report' >> $GITHUB_STEP_SUMMARY
- run: /tmp/venv/bin/coverage report --format=markdown --skip-empty --sort=-cover >> $GITHUB_STEP_SUMMARY