mirror of
https://github.com/Cian-H/read_aconity_layers.git
synced 2025-12-22 18:31:56 +00:00
Attempted fix for bash scripting issue in workflows
This commit is contained in:
15
.github/workflows/python-package.yaml
vendored
15
.github/workflows/python-package.yaml
vendored
@@ -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
|
||||||
|
|||||||
1
.github/workflows/rust.yaml
vendored
1
.github/workflows/rust.yaml
vendored
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user