Skip to content

Commit

Permalink
Merge branch 'master' into suppress-path0
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored Jun 26, 2024
2 parents c2a67eb + c654ec0 commit eab4836
Show file tree
Hide file tree
Showing 107 changed files with 6,921 additions and 5,740 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Bug report
about: Report a problem with coverage.py
title: ''
labels: bug, needs triage
labels: bug
assignees: ''

---
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Feature request
about: Suggest an idea for coverage.py
title: ''
labels: enhancement, needs triage
labels: enhancement
assignees: ''

---
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Support request
about: Ask for help using coverage.py
title: ''
labels: support, needs triage
labels: support
assignees: ''

---
Expand Down
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ updates:
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
commit-message:
prefix: "chore"
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -60,7 +60,7 @@ jobs:
# 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@v3
uses: github/codeql-action/autobuild@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -74,4 +74,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3
24 changes: 11 additions & 13 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ jobs:

steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: "Set up Python"
uses: "actions/setup-python@v5"
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: "${{ matrix.python-version }}"
allow-prereleases: true
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
mv .metacov .metacov.$MATRIX_ID
- name: "Upload coverage data"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: metacov-${{ env.MATRIX_ID }}
path: .metacov.*
Expand All @@ -141,10 +141,10 @@ jobs:

steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: "Set up Python"
uses: "actions/setup-python@v5"
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: "3.8" # Minimum of PYVERSIONS
# At a certain point, installing dependencies failed on pypy 3.9 and
Expand All @@ -158,7 +158,7 @@ jobs:
set -xe
python -VV
python -m site
env
env | sort
- name: "Install dependencies"
run: |
Expand All @@ -167,7 +167,7 @@ jobs:
python igor.py zip_mods
- name: "Download coverage data"
uses: actions/download-artifact@v4
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
pattern: metacov-*
merge-multiple: true
Expand All @@ -181,7 +181,7 @@ jobs:
python igor.py combine_html
- name: "Upload HTML report"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: html_report
path: htmlcov
Expand All @@ -200,13 +200,11 @@ jobs:
- name: "Show environment"
run: |
set -xe
env
env | sort
- name: "Compute info for later steps"
id: info
run: |
set -xe
env
export SHA10=$(echo ${{ github.sha }} | cut -c 1-10)
export SLUG=$(date +'%Y%m%d')_$SHA10
export REPORT_DIR=reports/$SLUG/htmlcov
Expand Down Expand Up @@ -236,7 +234,7 @@ jobs:
- name: "Download coverage HTML report"
if: ${{ github.ref == 'refs/heads/master' }}
uses: actions/download-artifact@v4
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: html_report
path: reports_repo/${{ env.report_dir }}
Expand Down Expand Up @@ -272,7 +270,7 @@ jobs:
github.repository_owner == 'nedbat'
&& github.ref == 'refs/heads/master'
# https://gist.githubusercontent.com/nedbat/8c6980f77988a327348f9b02bbaf67f5
uses: schneegans/dynamic-badges-action@e9a478b16159b4d31420099ba146cdc50f134483
uses: schneegans/dynamic-badges-action@e9a478b16159b4d31420099ba146cdc50f134483 # v1.7.0
with:
auth: ${{ secrets.METACOV_GIST_SECRET }}
gistID: 8c6980f77988a327348f9b02bbaf67f5
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
uses: actions/dependency-review-action@72eb03d02c7872a771aacd928f3123ac62ad6d3a # v4.3.3
with:
base-ref: ${{ github.event.pull_request.base.sha || 'master' }}
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}
40 changes: 26 additions & 14 deletions .github/workflows/kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ jobs:
steps:
- name: "Setup QEMU"
if: matrix.os == 'ubuntu'
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
with:
platforms: arm64

- name: "Check out the repo"
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: "Install Python 3.8"
uses: actions/setup-python@v5
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
# PYVERSIONS
python-version: "3.8"
Expand All @@ -176,8 +176,12 @@ jobs:
run: |
ls -al wheelhouse/
- name: "Check wheels"
run: |
python -m twine check wheelhouse/*
- name: "Upload wheels"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: dist-${{ env.MATRIX_ID }}
path: wheelhouse/*.whl
Expand All @@ -188,10 +192,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Check out the repo"
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: "Install Python 3.8"
uses: actions/setup-python@v5
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
# PYVERSIONS
python-version: "3.8"
Expand All @@ -206,12 +210,16 @@ jobs:
run: |
python -m build
- name: "List tarballs"
- name: "List sdist"
run: |
ls -al dist/
- name: "Check sdist"
run: |
python -m twine check dist/*
- name: "Upload sdist"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: dist-sdist
path: dist/*.tar.gz
Expand All @@ -222,10 +230,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Check out the repo"
uses: actions/checkout@v4
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: "Install PyPy"
uses: actions/setup-python@v5
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: "pypy-3.8" # Minimum of PyPy PYVERSIONS
cache: pip
Expand All @@ -248,8 +256,12 @@ jobs:
run: |
ls -al dist/
- name: "Check wheels"
run: |
python -m twine check dist/*
- name: "Upload wheels"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: dist-pypy
path: dist/*.whl
Expand All @@ -268,13 +280,13 @@ jobs:
id-token: write
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v4
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
pattern: dist-*
merge-multiple: true

- name: "Sign artifacts"
uses: sigstore/[email protected]
uses: sigstore/gh-action-sigstore-python@61f6a500bbfdd9a2a339cf033e5421951fbc1cd2 # v2.1.1
with:
inputs: coverage-*.*

Expand All @@ -283,7 +295,7 @@ jobs:
ls -alR
- name: "Upload signatures"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: signatures
path: |
Expand Down
Loading

0 comments on commit eab4836

Please sign in to comment.