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

PyO3 python path #77

Merged
merged 6 commits into from
Mar 6, 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
10 changes: 9 additions & 1 deletion .github/actions/setup-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ runs:
path: .venv
key: "venv-${{ runner.os }}-${{ hashFiles('requirements**.lock') }}"

- name: Export PYO3 Path
shell: bash
# Figure out a way to dynamically get python version
run: |
echo "PYO3_PYTHON=/home/runner/work/vortex/vortex/.venv/bin/python" >> $GITHUB_ENV
echo "PYO3_ENVIRONMENT_SIGNATURE=cpython-3.11-64bit" >> $GITHUB_ENV

- name: Rye Sync
shell: bash
# --no-lock prevents resolution of the lock file. The locks are still respected.
Expand All @@ -44,4 +51,5 @@ runs:

- name: Export Path
shell: bash
run: echo "PATH=$PATH" >> $GITHUB_ENV
run: echo "PATH=$PATH" >> $GITHUB_ENV

7 changes: 2 additions & 5 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,12 @@ runs:
uses: mozilla-actions/[email protected]
- name: Rust Compile Cache Config
shell: bash
# echo "CARGO_LOG=cargo::core::compiler::fingerprint=info" >> $GITHUB_ENV
run: |
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "CARGO_INCREMENTAL=0" >> $GITHUB_ENV

- name: Rust Build
shell: bash
run: cargo build --all-targets

- name: Export Path
shell: bash
run: echo "PATH=$PATH" >> $GITHUB_ENV
run: echo "PATH=$PATH" >> $GITHUB_ENV
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/setup-python

- name: Rust Build
run: cargo build --all-targets

- name: Python Lint - Format
run: rye run ruff format --check .
- name: Python Lint - Ruff
Expand Down