fix: adapt to new libnvme nvme.ctrl() dict-based constructor #33
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CodeQL | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| schedule: | |
| - cron: '15 3 * * 2' # Tuesdays at 3:15 AM UTC | |
| workflow_dispatch: | |
| jobs: | |
| analyze: | |
| name: Analyze (python) | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 60 | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: "CHECKOUT: nvme-stas" | |
| uses: actions/checkout@v6 | |
| - name: "INSTALL: build packages" | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install --yes --quiet meson ninja-build cmake | |
| - name: "INSTALL: python packages" | |
| run: | | |
| sudo apt-get install --yes --quiet python3-systemd python3-pyudev python3-dasbus python3-gi python3-lxml python3-tomli | |
| - name: "INSTALL: remaining debian packages" | |
| run: | | |
| sudo apt-get install --yes --quiet libgirepository1.0-dev libsystemd-dev | |
| - name: "INSTALL: libnvme packages (needed to build libnvme)" | |
| run: | | |
| sudo apt-get install --yes --quiet swig libjson-c-dev | |
| - name: "INIT: CodeQL" | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: python | |
| config-file: ./.github/codeql/codeql-config.yml | |
| - name: "BUILD: [libnvme, nvme-stas] (generates configured files in .build/)" | |
| run: | | |
| meson setup .build --buildtype=release --sysconfdir=/etc --prefix=/usr -Dnvme-cli:buildtype=release -Dnvme-cli:sysconfdir=/etc -Dnvme-cli:prefix=/usr -Dnvme-cli:python=enabled -Dnvme-cli:libdbus=disabled -Dnvme-cli:openssl=disabled -Dnvme-cli:json-c=disabled -Dnvme-cli:keyutils=disabled | |
| meson compile -C .build | |
| - name: "CONFIG: PYTHONPATH" | |
| run: | | |
| echo "PYTHONPATH=.build:.build/subprojects/nvme-cli/libnvme:/usr/lib/python3/dist-packages/" >> $GITHUB_ENV | |
| - name: "ANALYZE: CodeQL" | |
| uses: github/codeql-action/analyze@v4 | |
| with: | |
| category: "/language:python" |