-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (54 loc) · 1.44 KB
/
run_platform.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
49
50
51
52
53
54
55
56
57
58
# Run the "Platform tests" with the following conditions.
# - dispatch
# - weekly
#
# The test are run on:
# - Linux / Ubuntu
# - Apple / macOS
# - Microsoft / Windows
# - Python 3.9
# - Python 3.10
# - Python 3.11
# - Python 3.12
#
# Two different kinds of tests are made:
# - using the "requirements.txt" file
# - using the package dependencies
#
# Thomas Guillod - Dartmouth College
# Mozilla Public License Version 2.0
name: Run Platform Tests
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * 1"
jobs:
build:
strategy:
fail-fast: false
matrix:
method:
- name: "requirements"
cmd: "pip install -r requirements.txt"
- name: "package"
cmd: "pip install ."
system: ["ubuntu-latest", "macos-latest", "windows-latest"]
version: ["3.9", "3.10", "3.11", "3.12"]
name: Platform / ${{ matrix.method.name }} / ${{ matrix.system }} / ${{ matrix.version }}
runs-on: ${{ matrix.system }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
${{ matrix.method.cmd }}
- name: Run the tests
shell: bash -el {0}
run:
chmod +x scripts/run_tests.sh
./scripts/run_tests.sh