diff --git a/.github/workflows/antivirus.yml b/.github/workflows/antivirus.yml new file mode 100644 index 0000000..d62257d --- /dev/null +++ b/.github/workflows/antivirus.yml @@ -0,0 +1,19 @@ +on: + pull_request: + types: [opened, synchronize, reopened] + +permissions: + contents: read + +jobs: + gitavscan: + runs-on: ubuntu-latest + name: AV scan + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Git AV Scan + uses: djdefi/gitavscan@66a83ba98eca422f37322bc9851fa56195b252f3 # v23 + with: + full: '--full' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2def77c..01ba525 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,8 @@ name: Release to PyPI +permissions: + contents: read + on: release: types: [published] @@ -12,15 +15,18 @@ jobs: id-token: write # required for PyPI trusted publisher (OIDC) steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: - python-version: "3.12" + python-version: "3.13.17" - name: Install build tools - run: python -m pip install --upgrade pip build + run: python -m pip install --upgrade "pip>=26.2.2" "certifi>=2026.10.19 build" # Strip a leading 'v' from the tag (e.g. v1.2.3 → 1.2.3) and write it # into pyproject.toml so the published package version matches the tag. @@ -35,4 +41,4 @@ jobs: run: python -m build - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 diff --git a/.github/workflows/security-analysis.yml b/.github/workflows/security-analysis.yml deleted file mode 100644 index 8bdb8fd..0000000 --- a/.github/workflows/security-analysis.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: - - main - pull_request: - # The branches below must be a subset of the branches above - branches: - - main - schedule: - - cron: '42 7 * * 5' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'python' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://git.io/codeql-language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 489ac47..f913e37 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,16 +14,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + persist-credentials: false - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: - python-version: "3.12" + python-version: "3.13.17" - name: Install dependencies run: | - python -m pip install --upgrade pip + python -m pip install --upgrade "pip>=26.2.2" "certifi>=2026.10.19" pip install pytest pytest-asyncio openai python-dotenv Pillow matplotlib pandas aiohttp scikit-learn pytest-mpl pip install -e . diff --git a/.github/workflows/virus.yml b/.github/workflows/virus.yml deleted file mode 100644 index 27c8de0..0000000 --- a/.github/workflows/virus.yml +++ /dev/null @@ -1,12 +0,0 @@ -on: - pull_request: - types: [assigned, opened, synchronize, reopened, closed] - -jobs: - gitavscan: - runs-on: ubuntu-latest - name: AV scan - steps: - - uses: actions/checkout@v2 - - name: Git AV Scan - uses: djdefi/gitavscan@main \ No newline at end of file