Skip to content

Commit 26c4572

Browse files
authored
Merge pull request #356 from nicolocin/disable_etelemetry
Disable etelemetry in CI
2 parents b81518f + 3ee05c1 commit 26c4572

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

.github/workflows/testallowfail.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v2
24+
- name: Disable etelemetry
25+
run: echo ::set-env name=NO_ET::TRUE
2426
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
2527
uses: actions/setup-python@v2
2628
with:

.github/workflows/testpydra.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v2
22+
- name: Disable etelemetry
23+
run: echo ::set-env name=NO_ET::TRUE
2224
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
2325
uses: actions/setup-python@v2
2426
with:

.github/workflows/testsingularity.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- name: Set env
1616
run: |
1717
echo ::set-env name=RELEASE_VERSION::v3.5.0
18+
echo ::set-env name=NO_ET::TRUE
1819
- name: Setup Singularity
1920
uses: actions/checkout@v2
2021
with:

.github/workflows/testslurm.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ jobs:
99
DOCKER_IMAGE: mgxd/slurm:19.05.1
1010

1111
steps:
12+
- name: Disable etelemetry
13+
run: echo ::set-env name=NO_ET::TRUE
1214
- uses: actions/checkout@v2
1315
- name: Pull docker image
1416
run: |
1517
docker pull $DOCKER_IMAGE
1618
# Have image running in background
17-
docker run `bash <(curl -s https://codecov.io/env)` -itd -h ernie --name slurm -v `pwd`:/pydra $DOCKER_IMAGE
19+
docker run `bash <(curl -s https://codecov.io/env)` -itd -h ernie --name slurm -v `pwd`:/pydra -e NO_ET=$NO_ET $DOCKER_IMAGE
1820
- name: Display previous jobs with sacct
1921
run: |
2022
echo "Allowing ports/daemons time to start" && sleep 10
@@ -29,6 +31,7 @@ jobs:
2931
fi
3032
- name: Setup Python
3133
run: |
34+
docker exec slurm bash -c "echo $NO_ET"
3235
docker exec slurm bash -c "ls -la && echo list top level dir"
3336
docker exec slurm bash -c "ls -la /pydra && echo list pydra dir"
3437
docker exec slurm bash -c "pip install -e /pydra[test] && python -c 'import pydra; print(pydra.__version__)'"

pydra/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323

2424
def check_latest_version():
25+
2526
import etelemetry
2627

2728
return etelemetry.check_available_version("nipype/pydra", __version__, lgr=logger)

0 commit comments

Comments
 (0)