Attempted fix for bash scripting issue in workflows

This commit is contained in:
2024-11-13 20:26:44 +00:00
parent 29b99710f8
commit abb88c1b0f
2 changed files with 10 additions and 6 deletions

View File

@@ -9,12 +9,14 @@ on:
jobs: jobs:
build-python: build-python:
name: Build python package for ${{ matrix.os }} with Python ${{ matrix.python-version }} via Poetry ${{ matrix.poetry-version }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: ["3.11", "3.12", "3.13"] python-version: ["3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest] os: [ubuntu-latest, windows-latest]
poetry-version: ["latest"]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -26,15 +28,16 @@ jobs:
if: ${{ env.ACT }} if: ${{ env.ACT }}
run: | run: |
apt-get update && apt-get install sudo -y cargo apt-get update && apt-get install sudo -y cargo
- name: Run poetry image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install python dependencies - name: Install python dependencies
run: | run: |
python -m pip install --upgrade pip poetry install
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build rust package - name: Build rust package
run: | run: |
maturin build poetry run maturin develop
python -m pip install target/wheels/*.whl
- name: Test with pytest - name: Test with pytest
run: | run: |
pytest poetry run pytest

View File

@@ -12,6 +12,7 @@ env:
jobs: jobs:
build-rust: build-rust:
name: Build rust library for ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix: