-
Notifications
You must be signed in to change notification settings - Fork 99
100 lines (89 loc) 路 2.96 KB
/
tests-all-os.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Tests all OS
on:
workflow_dispatch:
# this allows to run the workflow manually through the github dashboard
jobs:
localhost_tests:
runs-on: ${{ matrix.os }}
timeout-minutes: 6
env:
OBJC_DISABLE_INITIALIZE_FORK_SAFETY: YES
strategy:
fail-fast: True
matrix:
include:
# Linux
- os: ubuntu-20.04
python-version: "3.6"
- os: ubuntu-22.04
python-version: "3.7"
- os: ubuntu-22.04
python-version: "3.8"
- os: ubuntu-22.04
python-version: "3.9"
- os: ubuntu-22.04
python-version: "3.10"
- os: ubuntu-22.04
python-version: "3.11"
- os: ubuntu-22.04
python-version: "3.12"
# macOS
- os: macos-12
python-version: "3.7"
- os: macos-13
python-version: "3.8"
- os: macos-14
python-version: "3.9"
- os: macos-14
python-version: "3.10"
- os: macos-14
python-version: "3.11"
- os: macos-14
python-version: "3.12"
# Windows
- os: windows-2022
python-version: "3.7"
- os: windows-2022
python-version: "3.8"
- os: windows-2022
python-version: "3.9"
- os: windows-2022
python-version: "3.10"
- os: windows-2022
python-version: "3.11"
- os: windows-2022
python-version: "3.12"
steps:
- name: Clone Lithops repository
uses: actions/checkout@v4
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Lithops
run: |
pip3 install -U .[tests]
- name: Create Lithops config file
run: |
mkdir -p $HOME/.lithops
echo "lithops:" >> $HOME/.lithops/config
echo " monitoring_interval: 0.1" >> $HOME/.lithops/config
echo " log_level: DEBUG" >> $HOME/.lithops/config
echo " include_modules: None" >> $HOME/.lithops/config
echo "localhost:" >> $HOME/.lithops/config
echo " version: 2" >> $HOME/.lithops/config
- name: Run Lithops tests
run: |
cd lithops/tests
pytest -v --durations=0 --backend localhost --storage localhost
- name: Display last 500 lines of the Lithops log file
if: cancelled() || failure()
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
tail -n 500 /tmp/lithops-runner/localhost-runner.log
elif [ "$RUNNER_OS" == "macOS" ]; then
tail -n 500 $TMPDIR/lithops-runner/localhost-runner.log
elif [ "$RUNNER_OS" == "Windows" ]; then
tail -n 500 "C:\Users\RUNNER~1\AppData\Local\Temp\lithops-root\localhost-runner.log"
fi