diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..94d110b3 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,37 @@ +name: "CodeQL" +on: + workflow_dispatch: + #push: + # branches: [master] + #pull_request: + # branches: [master] + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: ["python"] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + queries: security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 \ No newline at end of file diff --git a/.github/workflows/python-tox.yml b/.github/workflows/python-tox.yml deleted file mode 100644 index cfcc42e6..00000000 --- a/.github/workflows/python-tox.yml +++ /dev/null @@ -1,65 +0,0 @@ -on: [pull_request, push] -jobs: - build: - # Prevent duplicate builds for 'internal' pull requests on existing commits - # Credit: https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012 - if: github.event.push || github.event.pull_request.head.repo.full_name != github.repository - strategy: - fail-fast: false - matrix: - # 2.7, 3.5, and 3.6 run on Windows via AppVeyor - python: ["3.7", "3.8", "3.9", "3.10", "3.11"] - os: [ubuntu-latest, windows-latest] - deps: [base, optional] - include: - - python: "pypy-2.7" - os: ubuntu-latest - deps: base - - python: "pypy-3.8" - os: ubuntu-latest - deps: base - - python: "2.7" - os: ubuntu-latest - deps: oldest - - python: "3.7" - os: ubuntu-latest - deps: oldest - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - with: - submodules: true - - if: ${{ matrix.deps == 'base' }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python }} - cache: pip - cache-dependency-path: | - requirements.txt - requirements-test.txt - - if: ${{ matrix.deps == 'optional' }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python }} - cache: pip - cache-dependency-path: | - requirements.txt - requirements-optional.txt - requirements-test.txt - - if: ${{ matrix.deps == 'oldest' }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python }} - cache: pip - cache-dependency-path: | - requirements-oldest.txt - - if: ${{ matrix.os == 'windows-latest' }} - name: Determine environment name for Tox (PowerShell) - run: python toxver.py ${{ matrix.python }} ${{ matrix.deps }} >> $env:GITHUB_ENV - - if: ${{ matrix.os == 'ubuntu-latest' }} - name: Determine environment name for Tox (Bash) - run: python toxver.py ${{ matrix.python }} ${{ matrix.deps }} >> $GITHUB_ENV - - run: pip install tox - - run: tox - - if: ${{ always() }} - run: python debug-info.py