support QuerySecurityFile and SetSecurityFile #67
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
| # This workflow will install Python dependencies with uv, and run tests with a variety of Python versions | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
| name: Python package | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v10.0.1 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync --python ${{ matrix.python-version }} | |
| - name: Lint with ruff | |
| run: uv run --python ${{ matrix.python-version }} ruff check . | |
| - name: Type check with ty | |
| run: uv run --python ${{ matrix.python-version }} ty check | |
| - name: Test with pytest | |
| run: uv run --python ${{ matrix.python-version }} pytest | |
| - name: Coverage | |
| if: ${{ matrix.python-version == '3.14' }} | |
| run: | | |
| uv run coverage run --source=procmon_parser/ -m pytest . | |
| uv run coverage lcov | |
| - name: Coveralls | |
| if: ${{ matrix.python-version == '3.14' }} | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: coverage.lcov |