diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..8a0a668 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,5 @@ +[report] +exclude_also = + if __name__ == ['"]__main__['"]: + if TYPE_CHECKING: + assert 0\b diff --git a/.github/workflows/fuzzer.yml b/.github/workflows/fuzzer.yml index 855c01c..64d3bd0 100644 --- a/.github/workflows/fuzzer.yml +++ b/.github/workflows/fuzzer.yml @@ -5,16 +5,34 @@ on: description: Number of iterations type: number default: 250000 + do_shard: + description: Run it on 4 separate machines (`n` on each)? + type: boolean + default: false jobs: - test: + fuzzer: runs-on: ubuntu-latest strategy: matrix: py_version: - "3.10" - "3.11" + - "3.12" + do_shard: + - ${{ inputs.do_shard }} + shard_index: [0, 1, 2, 3] + exclude: + - do_shard: false + include: + - do_shard: false + py_version: "3.10" + - do_shard: false + py_version: "3.11" + - do_shard: false + py_version: "3.12" + name: ${{ inputs.do_shard && format('Run fuzzer (Python {0}, shard {1})', matrix.py_version, matrix.shard_index) || format('Run fuzzer (Python {0})', matrix.py_version) }} steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index bf3e80a..641b530 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -15,6 +15,7 @@ jobs: py_version: - "3.10" - "3.11" + - "3.12" steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.idea/inspectionProfiles/project_inspections.xml b/.idea/inspectionProfiles/project_inspections.xml index 75e6952..56fcd9f 100644 --- a/.idea/inspectionProfiles/project_inspections.xml +++ b/.idea/inspectionProfiles/project_inspections.xml @@ -1,6 +1,7 @@