Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nohehf committed May 13, 2024
1 parent 4cb99a5 commit ac9827a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
- name: Install python
uses: actions/setup-python@v2
with:
python-version: '3.11' # Adjust as necessary for your project
python-version: "3.11.9"

- name: Activate venv
run: python -m venv .venv && source .venv/bin/activate

# - name: Install Python dependencies
# run: |
# python -m pip install --upgrade pip
# # If there are other Python dependencies to install, add them here or use pip install -r requirements.txt

- name: Set up Maturin
uses: PyO3/maturin-action@v1
with:
command: develop
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install maturin
- name: Run tests
run: make test
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
.PHONY: setup
setup:
pyenv virtualenvs | grep stack-graphs-python-bindings || pyenv virtualenv 3.11.0 stack-graphs-python-bindings
pyenv virtualenvs | grep stack-graphs-python-bindings || pyenv virtualenv 3.11.9 stack-graphs-python-bindings
pyenv activate stack-graphs-python-bindings
python -m pip install --upgrade pip
pip install maturin


.PHONY: develop
develop:
maturin develop
Expand Down

0 comments on commit ac9827a

Please sign in to comment.