File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -140,9 +140,6 @@ jobs:
140
140
141
141
moto :
142
142
image : motoserver/moto:5.0.27
143
- env :
144
- AWS_ACCESS_KEY_ID : foobar_key
145
- AWS_SECRET_ACCESS_KEY : foobar_secret
146
143
ports :
147
144
- 5000:5000
148
145
Original file line number Diff line number Diff line change 2
2
3
3
import pytest
4
4
5
+ from pandas .compat import (
6
+ is_ci_environment ,
7
+ is_platform_arm ,
8
+ is_platform_mac ,
9
+ is_platform_windows ,
10
+ )
5
11
import pandas .util ._test_decorators as td
6
12
7
13
import pandas .io .common as icom
@@ -53,6 +59,11 @@ def aws_credentials(monkeysession):
53
59
54
60
@pytest .fixture (scope = "session" )
55
61
def moto_server (aws_credentials ):
62
+ # use service container for Linux on GitHub Actions
63
+ if is_ci_environment () and not (
64
+ is_platform_mac () or is_platform_arm () or is_platform_windows ()
65
+ ):
66
+ return "http://localhost:5000"
56
67
moto_server = pytest .importorskip ("moto.server" )
57
68
server = moto_server .ThreadedMotoServer (port = 0 )
58
69
server .start ()
You can’t perform that action at this time.
0 commit comments