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

MAINT: Need to be explicit with action path while using pixi run too #98

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

MridulS
Copy link
Member

@MridulS MridulS commented Sep 30, 2024

I missed this in #96 but we need to be explicit while using pixi run too.

I was tripping into could not find pixi.toml or pyproject.toml which is configured to use pixi while on the pixi run step downstream.

I can use scipp/scipp#3542 to test this outside of this repo. I'll ping here once that passes :)

* Provide '--manifest-path' option to 'pixi run' to ensure the environment is properly activated.

      --manifest-path <MANIFEST_PATH>
          The path to 'pixi.toml' or 'pyproject.toml'

I missed this in #96 but we need to be explicit while using `pixi run` too.

I was tripping into `could not find pixi.toml or pyproject.toml which is configured to use pixi` while on the `pixi run` step downstream.
@matthewfeickert
Copy link
Member

I can use scipp/scipp#3542 to test this outside of this repo. I'll ping here once that passes :)

Thank you @MridulS. If I'm not immediately responsive please merge if things pass there.

@matthewfeickert
Copy link
Member

@MridulS The action worked for you. 👍

Your workflow failed

  while read -r package_name; do
    echo "Removing $package_name"
    pixi run anaconda --token "***" remove -f "$package_name"
  done < dev_wheels.txt
  shell: /usr/bin/bash -l {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.10.15/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.15/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.15/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.15/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.15/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.15/x64/lib
Removing scipp-nightly-wheels/scipp/24.9.2.dev8+g7d0cce6be
  × could not find pixi.toml or pyproject.toml which is configured to use pixi

but that's because in your PR you're trying to use pixi locally without any configs:

      - name: Delete old dev wheels from pypi.anaconda.org
        run: |
          while read -r package_name; do
            echo "Removing $package_name"
            pixi run anaconda --token "${{secrets.ANACONDA_NIGHTLY_WHEEL_TOKEN}}" remove -f "$package_name"
          done < dev_wheels.txt

@matthewfeickert matthewfeickert merged commit 82396a2 into main Sep 30, 2024
2 checks passed
@matthewfeickert matthewfeickert deleted the pixi_run_manifest branch September 30, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants