Skip to content

Fix SBOM encoding error on Windows #24

Fix SBOM encoding error on Windows

Fix SBOM encoding error on Windows #24

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Install grype for testing (Unix)
if: runner.os != 'Windows'
run: |
curl -sSfL https://get.anchore.io/grype | sh -s -- -b /usr/local/bin
- name: Install grype for testing (Windows)
if: runner.os == 'Windows'
run: |
curl -sSfL https://get.anchore.io/grype | bash -s -- -b /usr/bin
shell: bash
- name: Test installation
run: |
grummage --help
echo "Help command completed successfully"
shell: bash