From 93a229c925d2110cdd91aa0f87a1e49f5ebf1ab9 Mon Sep 17 00:00:00 2001 From: John Vrbanac Date: Wed, 21 May 2025 10:36:32 -0500 Subject: [PATCH 1/5] Moving to GitHub actions --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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..3a876f1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.7, 3.8, 3.9, 3.10, 3.11, 3.12] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox codecov + - name: Run tests with tox + run: tox -e py + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 From c1fc1512391d13833f20d5037473cd68d16b3df5 Mon Sep 17 00:00:00 2001 From: John Vrbanac Date: Wed, 21 May 2025 10:40:00 -0500 Subject: [PATCH 2/5] Only doing 3.7 for the moment --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a876f1..8f70c22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, 3.10, 3.11, 3.12] + python-version: [3.7.17] steps: - uses: actions/checkout@v4 @@ -21,7 +21,6 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip pip install tox codecov - name: Run tests with tox run: tox -e py From bb9d4b5632b00bf3da803d67fa35b92b1027aa68 Mon Sep 17 00:00:00 2001 From: John Vrbanac Date: Wed, 21 May 2025 10:42:12 -0500 Subject: [PATCH 3/5] Lets just start with 3.8 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f70c22..f12331d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7.17] + python-version: [3.8] steps: - uses: actions/checkout@v4 From e6f5bae095f456144202d7b3e507842eee21e8da Mon Sep 17 00:00:00 2001 From: John Vrbanac Date: Wed, 21 May 2025 10:46:36 -0500 Subject: [PATCH 4/5] Add in other Python versions --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f12331d..8ec10c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8] + python-version: [3.8, 3.9, 3.10, 3.11, 3.12] steps: - uses: actions/checkout@v4 From a0c46c1f4729e53a4d48485a3c6318a16d809b9a Mon Sep 17 00:00:00 2001 From: John Vrbanac Date: Wed, 21 May 2025 10:48:10 -0500 Subject: [PATCH 5/5] Fixing 3.10 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ec10c1..dfae934 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9, 3.10, 3.11, 3.12] + python-version: [3.8, 3.9, 3.10.17, 3.11, 3.12] steps: - uses: actions/checkout@v4