Skip to content

Commit

Permalink
Update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Aug 31, 2023
1 parent 24fe25d commit d9b4d4a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 53 deletions.
54 changes: 5 additions & 49 deletions .github/workflows/packages-cfn_guard_rs-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ on:
- "packages/cfn_guard_rs/**"
- "packages/cfn_guard_rs_hook/**"
jobs:
linux:
unitlint:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
target: [aarch64, x86_64]
python: [ 3.8, 3.9, "3.10", "3.11" ]
directory:
- ./packages/cfn_guard_rs
- ./packages/cfn_guard_rs_hook
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ${{ matrix.directory }}
Expand All @@ -28,53 +30,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.8"
- name: Install Tox and any other packages
run: pip3 install tox
- name: Run Tox
run: |
python3 --version
tox -e py
windows:
strategy:
matrix:
directory:
- ./packages/cfn_guard_rs
- ./packages/cfn_guard_rs_hook
runs-on: windows-latest
defaults:
run:
working-directory: ${{ matrix.directory }}
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.8"
- name: Install Tox and any other packages
run: pip3 install tox
- name: Run Tox
run: |
python3 --version
tox -e py
macos:
strategy:
matrix:
directory:
- ./packages/cfn_guard_rs
- ./packages/cfn_guard_rs_hook
runs-on: macos-latest
defaults:
run:
working-directory: ${{ matrix.directory }}
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.8"
python-version: ${{ matrix.python }}
- name: Install Tox and any other packages
run: pip3 install tox
- name: Run Tox
Expand Down
3 changes: 0 additions & 3 deletions packages/cfn_guard_rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ edition = "2021"
name = "cfn_guard_rs"
crate-type = ["cdylib"]

[package.metadata.maturin]
python-source = "python"

[dependencies]
pyo3 = { version = "0.19.2", features = ["extension-module"] }
cfn-guard = "3.0.0"
3 changes: 3 additions & 0 deletions packages/cfn_guard_rs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
requires = ["maturin>=0.13,<0.14"]
build-backend = "maturin"

[tool.maturin]
python-source = "python"

[project]
name = "cfn_guard_rs"
requires-python = ">=3.7"
Expand Down
2 changes: 1 addition & 1 deletion packages/cfn_guard_rs_hook/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["Kevin DeJong <[email protected]>"]
python = "^3.7.2"
cloudformation-cli-python-lib = "^2.1.12"
cfn-guard-rs = "^0.2.1"
pyyaml = "~5.4.1"
pyyaml = "~6.0.1"
Jinja2 = "^3.0.0"
jsonpath-rw = "^1.0.0"

Expand Down

0 comments on commit d9b4d4a

Please sign in to comment.