2424 fail-fast : false
2525 matrix :
2626 python-version : ["3.10", "3.11", "3.12", "3.13", "3.14"]
27+ env :
28+ STORAGE_EMULATOR_HOST : http://localhost:4443
2729
2830 steps :
2931 - name : Checkout source
@@ -46,36 +48,44 @@ jobs:
4648 - name : install
4749 run : |
4850 pip install -e .
51+
52+ - name : Start GCS Emulator
53+ run : |
54+ docker run -d -p 4443:4443 --name gcsfs_test fsouza/fake-gcs-server:latest -scheme http -public-host 0.0.0.0:4443 -external-url http://localhost:4443 -backend memory
55+ timeout 30s bash -c 'until curl -s http://localhost:4443/storage/v1/b; do sleep 1; done'
56+
4957 - name : Run Standard Bucket Tests with extended feature support turned OFF
5058 run : |
51- export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret .json
59+ export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-service-account-credentials .json
5260 export GCSFS_EXPERIMENTAL_ZB_HNS_SUPPORT="false"
5361 pytest -vv -s \
5462 --cov=gcsfs --cov-report=xml \
5563 --log-format="%(asctime)s %(levelname)s %(message)s" \
5664 --log-date-format="%H:%M:%S" \
65+ -n auto \
5766 gcsfs/
5867 - name : Run Benchmark Infrastructure Unit Tests
5968 run : |
6069 pip install -r gcsfs/tests/perf/microbenchmarks/requirements.txt
6170 pytest gcsfs/tests/perf/microbenchmarks --run-benchmarks-infra
6271 - name : Run Standard Bucket Tests with default ON extended feature support
6372 run : |
64- export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret .json
73+ export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-service-account-credentials .json
6574 pytest -vv -s \
6675 --cov=gcsfs --cov-append --cov-report=xml \
6776 --log-format="%(asctime)s %(levelname)s %(message)s" \
6877 --log-date-format="%H:%M:%S" \
78+ -n auto \
6979 gcsfs/
7080 - name : Run Extended tests (Zonal & HNS Enabled)
7181 run : |
72- export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-secret.json
73- # TODO: Use dedicated test variables to decouple specialised test execution from the GCSFS_EXPERIMENTAL_ZB_HNS_SUPPORT feature flag.
82+ export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/gcsfs/tests/fake-service-account-credentials.json
7483 export GCSFS_EXPERIMENTAL_ZB_HNS_SUPPORT="true"
7584 pytest -vv -s \
7685 --cov=gcsfs --cov-append --cov-report=xml \
7786 --log-format="%(asctime)s %(levelname)s %(message)s" \
7887 --log-date-format="%H:%M:%S" \
88+ -n auto \
7989 gcsfs/tests/test_extended_gcsfs.py \
8090 gcsfs/tests/test_extended_hns_gcsfs.py \
8191 gcsfs/tests/test_extended_gcsfs_unit.py \
0 commit comments