From 5405a1322e79905fcb4348996b7f7c8f8a89042c Mon Sep 17 00:00:00 2001 From: "A.C.E07" Date: Fri, 27 Dec 2024 00:52:20 +0800 Subject: [PATCH 1/4] CI/CD modification - Moved py.typed back into root. - Renamed .yaml to .yml for consistency. - Added os matrix to tests.yml. --- .github/{dependabot.yaml => dependabot.yml} | 0 ...blish-pypi.yaml => python-publish-pypi.yml} | 0 .github/workflows/tests.yml | 18 ++++++++++++------ qickit/py.typed => py.typed | 0 4 files changed, 12 insertions(+), 6 deletions(-) rename .github/{dependabot.yaml => dependabot.yml} (100%) rename .github/workflows/{python-publish-pypi.yaml => python-publish-pypi.yml} (100%) rename qickit/py.typed => py.typed (100%) diff --git a/.github/dependabot.yaml b/.github/dependabot.yml similarity index 100% rename from .github/dependabot.yaml rename to .github/dependabot.yml diff --git a/.github/workflows/python-publish-pypi.yaml b/.github/workflows/python-publish-pypi.yml similarity index 100% rename from .github/workflows/python-publish-pypi.yaml rename to .github/workflows/python-publish-pypi.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 78240d7..8778b4c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,16 +7,17 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: + os: [ubuntu-latest, windows-latest, macos-latest] python-version: ["3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@v4 # v4.2.2 - name: Set up Python - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 + uses: actions/setup-python@v5 # v5.3.0 with: python-version: ${{ matrix.python-version }} @@ -34,7 +35,12 @@ jobs: - name: Run ruff run: ruff check qickit - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 + - name: Report to codecov + uses: codecov/codecov-action@v5 # v5.1.2 with: - files: ./coverage.xml + token: ${{ secrets.CODECOV_TOKEN }} + + - name: Report to Codacy + uses: codacy/codacy-coverage-reporter-action@v1.3.0 # v1.3.0 + with: + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} diff --git a/qickit/py.typed b/py.typed similarity index 100% rename from qickit/py.typed rename to py.typed From de033a9c79856fe3bf9c1556acf69fe3fc18fa4b Mon Sep 17 00:00:00 2001 From: "A.C.E07" Date: Fri, 27 Dec 2024 01:14:20 +0800 Subject: [PATCH 2/4] Update tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8778b4c..4d57a88 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-latest, windows-latest] python-version: ["3.10", "3.11", "3.12"] steps: From d7e99bd7854a6b6fb4cc3860d662ca0a0eaeb866 Mon Sep 17 00:00:00 2001 From: "A.C.E07" Date: Fri, 27 Dec 2024 01:30:22 +0800 Subject: [PATCH 3/4] Update tests.yml --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4d57a88..9e94208 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,3 +44,4 @@ jobs: uses: codacy/codacy-coverage-reporter-action@v1.3.0 # v1.3.0 with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + coverage-reports: coverage.xml From 81c62617bf7cb84da3200f75b3c27db98e3f7083 Mon Sep 17 00:00:00 2001 From: "A.C.E07" Date: Fri, 27 Dec 2024 01:31:21 +0800 Subject: [PATCH 4/4] Update tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9e94208..1a9d1d5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,4 +44,4 @@ jobs: uses: codacy/codacy-coverage-reporter-action@v1.3.0 # v1.3.0 with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} - coverage-reports: coverage.xml + coverage-reports: ./coverage.xml