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

Fix conda workflow #763

Merged
merged 2 commits into from
May 30, 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
28 changes: 17 additions & 11 deletions .github/workflows/test-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,31 @@ jobs:
python: [3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- uses: conda-incubator/setup-miniconda@v3
with:
activate-conda: false
conda-channels: conda-forge
auto-update-conda: true
python-version: ${{ matrix.python }}
channels: conda-forge

- name: Setup Environment
shell: bash
- name: Initialize conda
shell: bash -el {0}
run: |
conda create --name test python=${{ matrix.python }} pytest numpy scipy matplotlib pandas pytables numba scikit-learn pyyaml looseversion
source activate test
conda init

- name: Install packages
shell: bash -el {0} # Reads .profile so conda will work
run: |
conda create --name test python=${{ matrix.python }} pytest numpy scipy matplotlib pandas pytables numba scikit-learn pyyaml looseversion pip
conda activate test
pip install -v --no-deps -e .
python -V
conda info
conda list

- name: Run tests
shell: bash
shell: bash -el {0} # Reads .profile so conda will work
run: |
source activate test
conda activate test
pytest trackpy
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
description-file = README.md
description_file = README.md

[versioneer]
VCS = git
Expand Down