Move continue-on-error for Python 3.13 to individual steps

Shifted the `continue-on-error` condition for Python 3.13 from the job level to each individual step within the GitHub Actions workflow. This ensures more granular control over error handling, allowing other steps to succeed or fail independently.
This commit is contained in:
L1ghtn1ng 2024-10-16 05:51:41 +01:00
parent 40ecb55c41
commit cc1c653ad4

View file

@ -13,7 +13,6 @@ on:
jobs: jobs:
Python: Python:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.python-version == '3.13' }}
strategy: strategy:
max-parallel: 10 max-parallel: 10
matrix: matrix:
@ -30,76 +29,95 @@ jobs:
run: | run: |
pip install --upgrade pip pip install --upgrade pip
pip install .[dev] pip install .[dev]
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Lint with ruff - name: Lint with ruff
run: | run: |
ruff check ruff check
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Format with ruff - name: Format with ruff
run: | run: |
ruff format --check --diff ruff format --check --diff
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Test with pytest - name: Test with pytest
run: | run: |
pytest pytest
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module Anubis - name: Run theHarvester module Anubis
run: | run: |
theHarvester -d apple.com -b anubis theHarvester -d apple.com -b anubis
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module Baidu - name: Run theHarvester module Baidu
run: | run: |
theHarvester -d yale.edu -b baidu theHarvester -d yale.edu -b baidu
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module Bing - name: Run theHarvester module Bing
run: | run: |
theHarvester -d yale.edu -b bing theHarvester -d yale.edu -b bing
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module CertSpotter - name: Run theHarvester module CertSpotter
run: | run: |
theHarvester -d yale.edu -b certspotter theHarvester -d yale.edu -b certspotter
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module Crtsh - name: Run theHarvester module Crtsh
run: | run: |
theHarvester -d hcl.com -b crtsh theHarvester -d hcl.com -b crtsh
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module DnsDumpster - name: Run theHarvester module DnsDumpster
run: | run: |
theHarvester -d yale.edu -b dnsdumpster theHarvester -d yale.edu -b dnsdumpster
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module DuckDuckGo - name: Run theHarvester module DuckDuckGo
run: | run: |
theHarvester -d yale.edu -b duckduckgo theHarvester -d yale.edu -b duckduckgo
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module HackerTarget - name: Run theHarvester module HackerTarget
run: | run: |
theHarvester -d yale.edu -b hackertarget theHarvester -d yale.edu -b hackertarget
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module Otx - name: Run theHarvester module Otx
run: | run: |
theHarvester -d yale.edu -b otx theHarvester -d yale.edu -b otx
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module RapidDns - name: Run theHarvester module RapidDns
run: | run: |
theHarvester -d yale.edu -b rapiddns theHarvester -d yale.edu -b rapiddns
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module Threatminer - name: Run theHarvester module Threatminer
run: | run: |
theHarvester -d yale.edu -b threatminer theHarvester -d yale.edu -b threatminer
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module Urlscan - name: Run theHarvester module Urlscan
run: | run: |
theHarvester -d yale.edu -b urlscan theHarvester -d yale.edu -b urlscan
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module Yahoo - name: Run theHarvester module Yahoo
run: | run: |
theHarvester -d yale.edu -b yahoo theHarvester -d yale.edu -b yahoo
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Run theHarvester module DNS brute force - name: Run theHarvester module DNS brute force
run: | run: |
theHarvester -d yale.edu -c theHarvester -d yale.edu -c
continue-on-error: ${{ matrix.python-version == '3.13' }}
- name: Static type checking with mypy - name: Static type checking with mypy
run: | run: |
mypy --pretty theHarvester/*/*.py mypy --pretty theHarvester/*/*.py
mypy --pretty theHarvester/*/*/*.py mypy --pretty theHarvester/*/*/*.py
continue-on-error: ${{ matrix.python-version == '3.13' }}