Skip to content

Commit

Permalink
Adjust github actions to use setup-miniconda (#525)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
rly and pre-commit-ci[bot] authored Oct 2, 2024
1 parent c453b68 commit 5a0141a
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/assess-file-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

name: Test changed-files
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/dev-gallery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: 3.9
conda-channels: conda-forge
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install pytest
run: |
pip install pytest
pip install pytest-cov
- name: Install package
run: |
pip install -e ".[dandi]"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/doc-link-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.9

Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/read-nwbfile-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ jobs:
build-and-test:
name: Streaming tests using ${{ matrix.os }} with ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0} # necessary for conda
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"] # TODO: update mac and streaming methods
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: s-weigand/setup-conda@v1
- uses: conda-incubator/setup-miniconda@v3
with:
update-conda: true
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3
channels: conda-forge
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags

- name: Install pytest
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/streaming-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
os: ["ubuntu-latest", "windows-latest"] # TODO: update mac and streaming methods
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: s-weigand/setup-conda@v1
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags

- name: Setup Python
uses: actions/setup-python@v5
with:
update-conda: true
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3
- run: git fetch --prune --unshallow --tags

- name: Install pytest
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
os: ["ubuntu-latest", "macos-13", "windows-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: conda-incubator/setup-miniconda@v3
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags

- name: Setup Python
uses: actions/setup-python@v5
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
- uses: actions/checkout@v3
- run: git fetch --prune --unshallow --tags

- name: Install pytest
run: |
Expand Down

0 comments on commit 5a0141a

Please sign in to comment.