Skip to content

Commit 36cd82e

Browse files
authored
run tests with miniconda (#1658)
1 parent 8f29d95 commit 36cd82e

File tree

6 files changed

+13
-17
lines changed

6 files changed

+13
-17
lines changed

.github/workflows/main.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,15 @@ jobs:
2525
fetch-depth: 0
2626

2727
- name: Setup conda
28-
uses: mamba-org/setup-micromamba@v1
28+
uses: conda-incubator/setup-miniconda@v3
2929
with:
3030
environment-file: ci/environment-py38.yml
31-
create-args: >-
32-
python=${{ matrix.PY }}
31+
python-version: ${{ matrix.PY }}
3332

3433
- name: Run Tests
3534
shell: bash -l {0}
3635
run: |
37-
pip install s3fs
38-
pip uninstall s3fs
3936
pip install -e .[test_full]
40-
pip install s3fs --no-deps
4137
pytest -v
4238
4339
win:
@@ -54,17 +50,14 @@ jobs:
5450
fetch-depth: 0
5551

5652
- name: Setup conda
57-
uses: mamba-org/setup-micromamba@v1
53+
uses: conda-incubator/setup-miniconda@v3
5854
with:
5955
environment-file: ci/environment-win.yml
6056

6157
- name: Run Tests
6258
shell: bash -l {0}
6359
run: |
64-
pip install s3fs
65-
pip uninstall s3fs
6660
pip install -e .[test]
67-
pip install s3fs --no-deps
6861
pytest -v
6962
7063
lint:
@@ -84,7 +77,7 @@ jobs:
8477
# uses: actions/checkout@v4
8578
#
8679
# - name: Setup conda
87-
# uses: mamba-org/setup-micromamba@v1
80+
# uses: conda-incubator/setup-miniconda@v3
8881
# with:
8982
# environment-file: ci/environment-typecheck.yml
9083
#
@@ -104,7 +97,7 @@ jobs:
10497
fetch-depth: 0
10598

10699
- name: Setup conda
107-
uses: mamba-org/setup-micromamba@v1
100+
uses: conda-incubator/setup-miniconda@v3
108101
with:
109102
environment-file: ci/environment-downstream.yml
110103

@@ -145,7 +138,7 @@ jobs:
145138
uses: actions/checkout@v4
146139

147140
- name: Setup conda
148-
uses: mamba-org/setup-micromamba@v1
141+
uses: conda-incubator/setup-miniconda@v3
149142
with:
150143
environment-file: ci/environment-friends.yml
151144

ci/environment-downstream.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ name: test_env
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.9
5+
- python=3.11
66
- pip:
77
- git+https://github.com/dask/dask

ci/environment-friends.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: test_env
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.9
5+
- python=3.12
66
- pytest
77
- pytest-asyncio !=0.22.0
88
- pytest-benchmark

ci/environment-py38.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dependencies:
55
- pip
66
- git <2.45.0
77
- py
8+
- s3fs
89
- pip:
910
- hadoop-test-cluster
1011
- smbprotocol

ci/environment-win.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ name: test_env
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.9
5+
- python=3.11
6+
- s3fs
7+
- pytest

install_s3fs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ git clone https://github.com/fsspec/s3fs
1010
mv s3fs ./downstream/s3fs
1111

1212
# s3fs is pinned to a specific version of fsspec
13-
pip install -e ./downstream/s3fs # installs all deps, including latest released fsspec
13+
pip install --no-input -e ./downstream/s3fs # installs all deps, including latest released fsspec

0 commit comments

Comments
 (0)