Skip to content

Commit

Permalink
chore: add basic rust func
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammed Naser <[email protected]>
  • Loading branch information
mnaser committed Apr 12, 2024
1 parent bd339ee commit 97982bf
Show file tree
Hide file tree
Showing 17 changed files with 515 additions and 3,714 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/publish.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,9 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v3

- name: Install Poetry
if: ${{ steps.release.outputs.release_created }}
run: pipx install poetry

- name: Setup Python
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-python@v4
with:
cache: poetry

- name: Build package
if: ${{ steps.release.outputs.release_created }}
Expand Down
24 changes: 8 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,48 +29,40 @@ jobs:
- name: Checkout project
uses: actions/checkout@v3

- name: Install Poetry
run: make poetry

- name: Setup Python
uses: actions/setup-python@v4
with:
cache: poetry
python-version: ${{ matrix.python-version }}

- name: Build package
run: make build

install:
runs-on: ${{ matrix.runs-on }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- runs-on: ubuntu-latest
python-version: "3.8"
- python-version: "3.8"
openstack-version: zed
- runs-on: ubuntu-latest
python-version: "3.8"
- python-version: "3.8"
openstack-version: "2023.1"
- runs-on: ubuntu-latest
python-version: "3.10"
- python-version: "3.10"
openstack-version: "2023.2"
steps:
- name: Checkout project
uses: actions/checkout@v3

- name: Install Poetry
run: make poetry

- name: Setup Python
uses: actions/setup-python@v4
with:
cache: poetry
python-version: ${{ matrix.python-version }}

- name: Build package
run: make build
uses: PyO3/maturin-action@v1
with:
command: build
args: --release --out dist

- name: Install package using constraints
run: pip install --constraint https://releases.openstack.org/constraints/upper/${{ matrix.openstack-version }} ./dist/*.whl
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ dist
magnum_cluster_api/charts/*
!magnum_cluster_api/charts/.gitkeep
!magnum_cluster_api/charts/k8s-keystone-auth
site
site
/target
Loading

0 comments on commit 97982bf

Please sign in to comment.