From 90009ffd7c923e7d0428392a51b5fe38c0f3d0b7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 10 Nov 2025 10:59:20 +0000 Subject: [PATCH 1/8] Initial plan From 0f2fcff646e33cb58b152f72e104a8bf82a3b256 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 10 Nov 2025 11:02:28 +0000 Subject: [PATCH 2/8] Add *.egg-info/ to .gitignore Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com> --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 81e6a82..e07a852 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ libcomxml/bindings/*.py build/* .*.swp dist/* +*.egg-info/ From 12488d2418c36f35195f2b3f7d3ebdef47a46b7c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 10 Nov 2025 11:03:33 +0000 Subject: [PATCH 3/8] Add GitHub Actions workflow and update README badge Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com> --- .github/workflows/ci.yml | 55 ++++++++++++++++++++++++++++++++++++++++ README.rst | 4 +-- 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b42e193 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,55 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['2.7', '3.11'] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + pip install . + pip install coveralls + + - name: Run tests with coverage + run: | + coverage run setup.py test + + - name: Upload coverage to Coveralls + if: success() + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_FLAG_NAME: python-${{ matrix.python-version }} + COVERALLS_PARALLEL: true + run: | + coveralls --service=github + + - name: Generate coverage report + if: success() + run: | + coverage report + + coveralls-finish: + needs: test + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + parallel-finished: true diff --git a/README.rst b/README.rst index 53101d7..da19d50 100644 --- a/README.rst +++ b/README.rst @@ -2,8 +2,8 @@ libComXML ========= -.. image:: https://travis-ci.org/gisce/libComXML.png?branch=master - :target: https://travis-ci.org/gisce/libComXML +.. image:: https://github.com/gisce/libComXML/workflows/CI/badge.svg + :target: https://github.com/gisce/libComXML/actions :alt: Build Status .. image:: https://coveralls.io/repos/github/gisce/libComXML/badge.svg?branch=master From 2221fb8bff1ffe83f54a51853ee761b5efafef2a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 10 Nov 2025 11:05:31 +0000 Subject: [PATCH 4/8] Add explicit permissions to workflow for security Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b42e193..4c2086d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ on: jobs: test: runs-on: ubuntu-latest + permissions: + contents: read strategy: matrix: python-version: ['2.7', '3.11'] @@ -47,6 +49,8 @@ jobs: coveralls-finish: needs: test runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Coveralls Finished uses: coverallsapp/github-action@v2 From a26005f93c58df07592c2b5137c48490a6881b43 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 10 Nov 2025 11:06:48 +0000 Subject: [PATCH 5/8] Update GitHub Actions badge in documentation Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com> --- docs/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index e7006af..219eb56 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -6,8 +6,8 @@ LibComXML: Python object XML serialization Release v\ |version| -.. image:: https://travis-ci.org/gisce/libComXML.png?branch=master - :target: https://travis-ci.org/gisce/libComXML +.. image:: https://github.com/gisce/libComXML/workflows/CI/badge.svg + :target: https://github.com/gisce/libComXML/actions Guide ===== From b36e475f70421c8f5641ca911f653a05293239c3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 10 Nov 2025 15:15:23 +0000 Subject: [PATCH 6/8] Use container for Python 2.7 instead of setup-python action Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com> --- .github/workflows/ci.yml | 45 +++++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c2086d..9e80cb3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,21 +7,50 @@ on: branches: [ master ] jobs: - test: + test-python27: runs-on: ubuntu-latest + container: python:2.7-slim permissions: contents: read - strategy: - matrix: - python-version: ['2.7', '3.11'] steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install . + pip install coveralls + + - name: Run tests with coverage + run: | + coverage run setup.py test + + - name: Upload coverage to Coveralls + if: success() + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_FLAG_NAME: python-2.7 + COVERALLS_PARALLEL: true + run: | + coveralls --service=github + + - name: Generate coverage report + if: success() + run: | + coverage report + + test-python311: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: '3.11' - name: Install dependencies run: | @@ -36,7 +65,7 @@ jobs: if: success() env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_FLAG_NAME: python-${{ matrix.python-version }} + COVERALLS_FLAG_NAME: python-3.11 COVERALLS_PARALLEL: true run: | coveralls --service=github @@ -47,7 +76,7 @@ jobs: coverage report coveralls-finish: - needs: test + needs: [test-python27, test-python311] runs-on: ubuntu-latest permissions: contents: read From 83641512e191f1e8fa8ac31455c63c3f4968c2a3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 10 Nov 2025 15:21:58 +0000 Subject: [PATCH 7/8] Remove Coveralls and Travis CI configuration Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com> --- .github/workflows/ci.yml | 50 ++++------------------------------------ .travis.yml | 20 ---------------- 2 files changed, 4 insertions(+), 66 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e80cb3..8791950 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,25 +19,10 @@ jobs: - name: Install dependencies run: | pip install . - pip install coveralls - - name: Run tests with coverage + - name: Run tests run: | - coverage run setup.py test - - - name: Upload coverage to Coveralls - if: success() - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_FLAG_NAME: python-2.7 - COVERALLS_PARALLEL: true - run: | - coveralls --service=github - - - name: Generate coverage report - if: success() - run: | - coverage report + python setup.py test test-python311: runs-on: ubuntu-latest @@ -55,34 +40,7 @@ jobs: - name: Install dependencies run: | pip install . - pip install coveralls - - - name: Run tests with coverage - run: | - coverage run setup.py test - - - name: Upload coverage to Coveralls - if: success() - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_FLAG_NAME: python-3.11 - COVERALLS_PARALLEL: true - run: | - coveralls --service=github - - name: Generate coverage report - if: success() + - name: Run tests run: | - coverage report - - coveralls-finish: - needs: [test-python27, test-python311] - runs-on: ubuntu-latest - permissions: - contents: read - steps: - - name: Coveralls Finished - uses: coverallsapp/github-action@v2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - parallel-finished: true + python setup.py test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 626fa05..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: python -python: -- '2.7' -- '3.5' -install: -- pip install . -- pip install coveralls -script: -- coverage run setup.py test -after_success: -- coveralls -- coverage report -deploy: - provider: pypi - user: gisce - password: - secure: DnHZXDNTsrnnnc/cB+wYOGklsZ2zrnoss/PKSuYsbTSh7AAOU/8BCXfebB095zjLTBx7pGPhrLFM/sTuxAs1PXDT6s6q66w7hKVupIeU+232kRkneBcHOAjfc9HhrWwfrAhw5NIkRy8pA2xOkI54leopW6zA4CZXmIM71lsHIuY= - on: - tags: true - repo: gisce/libComXML From f5dc79c8ad7a0861767aa52dafb3d92f2aa864a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 10 Nov 2025 15:28:02 +0000 Subject: [PATCH 8/8] Use unittest discover instead of setup.py test Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8791950..840a3b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: - name: Run tests run: | - python setup.py test + python -m unittest discover -s tests test-python311: runs-on: ubuntu-latest @@ -43,4 +43,4 @@ jobs: - name: Run tests run: | - python setup.py test + python -m unittest discover -s tests