Repository navigation
69 lines (57 loc) · 1.6 KB
/
Copy pathtests.yml
File metadata and controls
69 lines (57 loc) · 1.6 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
62
63
64
65
66
67
68
69
name: Tests
on:
pull_request:
branches:
- master
paths:
- 'pyproject.toml'
- 'lithops/**'
- '.github/workflows/tests.yml'
# after a merge too, so master has a status of its own (the README badge shows it)
push:
branches:
- master
paths:
- 'pyproject.toml'
- 'lithops/**'
- '.github/workflows/tests.yml'
workflow_dispatch:
# this allows to run the workflow manually through the github dashboard
# A new push to a PR supersedes the run that is still going for it
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
localhost_tests:
runs-on: ubuntu-24.04
timeout-minutes: 15
services:
redis:
image: redis:7
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 3s
--health-retries 10
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- name: Clone Lithops repository
uses: actions/checkout@v5
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Install Lithops
run: |
pip3 install -U .[tests]
- name: Run Lithops tests
run: |
cd lithops/tests
pytest -v --timeout=120 --timeout-method=thread --backend localhost --storage localhost