Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust github actions to use setup-miniconda #525

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading