From 1aeaed884a8cfe4fbd62d0295488e01db0fbd761 Mon Sep 17 00:00:00 2001 From: brgix Date: Sun, 15 Jun 2025 16:34:12 -0400 Subject: [PATCH 1/5] Tickers with GitHub Actions --- .github/workflows/pull_request.yml | 9 +++++---- .github/workflows/python-package.yml | 29 ---------------------------- .gitignore | 2 ++ pyproject.toml | 2 +- 4 files changed, 8 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/python-package.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 756d062..5baa6f4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -2,15 +2,16 @@ name: Pull Request CI on: pull_request: - branches: [ "main" ] + branches: [ "develop" ] jobs: test_oslg: - runs-on: ubuntu-22.04 + runs-on: ubuntu-22.04 strategy: + fail-fast: false matrix: - python-version: [3.2, 3.5, 3.10] + python-version: [ "3.2", "3.5", "3.10" ] steps: - name: Check out repository @@ -22,4 +23,4 @@ jobs: - name: Install dependencies run: python -m pip install --upgrade pip setuptools wheel - name: Run unit tests - run: python -m unittest discover -s ./tests + run: python -m unittest diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml deleted file mode 100644 index 4bbc1f5..0000000 --- a/.github/workflows/python-package.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Python package - -on: - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.10"] - - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Test with pytest - run: | - python -m unittest diff --git a/.gitignore b/.gitignore index b6e4761..7b9468e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ __pycache__/ # C extensions *.so +.DS_Store + # Distribution / packaging .Python build/ diff --git a/pyproject.toml b/pyproject.toml index 06353b9..294a44e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ readme = "README.md" license = "BSD-3-Clause" license-files = ["LICENSE"] classifiers = [ - "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.2", "Intended Audience :: Developers", "Topic :: Software Development :: Libraries :: Python Modules", "Operating System :: OS Independent", From 07a22d7e993e2a1dc96d8cdc5fe550f140ffa653 Mon Sep 17 00:00:00 2001 From: brgix Date: Sun, 15 Jun 2025 16:36:33 -0400 Subject: [PATCH 2/5] Fixes (silly) YAML file typo --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 5baa6f4..bcbf106 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version } + python-version: ${{ matrix.python-version }} - name: Install dependencies run: python -m pip install --upgrade pip setuptools wheel - name: Run unit tests From 0a9bef939d672b7d14c1317ab59e4145bf8ad43f Mon Sep 17 00:00:00 2001 From: brgix Date: Sun, 15 Jun 2025 16:51:33 -0400 Subject: [PATCH 3/5] Simplifies GitHub Actions --- .github/workflows/pull_request.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index bcbf106..4924cf5 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -2,16 +2,32 @@ name: Pull Request CI on: pull_request: - branches: [ "develop" ] + branches: develop jobs: - test_oslg: + test_oslg_ubuntu_latest: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.10, 3.13] + + steps: + - name: Check out repository + 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 setuptools wheel + - name: Run unit tests + run: python -m unittest + test_oslg_ubuntu_2204: runs-on: ubuntu-22.04 strategy: - fail-fast: false matrix: - python-version: [ "3.2", "3.5", "3.10" ] + python-version: [3.10, 3.13] steps: - name: Check out repository From 31e823fd722fde0dad99929b8fc59fc78ba9ed45 Mon Sep 17 00:00:00 2001 From: brgix Date: Sun, 15 Jun 2025 16:53:01 -0400 Subject: [PATCH 4/5] Simplifies GitHub Actions (2) --- .github/workflows/pull_request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 4924cf5..e06eb68 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.10, 3.13] + python-version: [3.10x, 3.13x] steps: - name: Check out repository @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - python-version: [3.10, 3.13] + python-version: [3.10x, 3.13x] steps: - name: Check out repository From d53cb52a310a2f2a1801a4df42f562a8fb6afd8a Mon Sep 17 00:00:00 2001 From: brgix Date: Sun, 15 Jun 2025 16:54:50 -0400 Subject: [PATCH 5/5] Simplifies GitHub Actions (3) --- .github/workflows/pull_request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index e06eb68..7b514f4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.10x, 3.13x] + python-version: ["3.10", "3.x"] steps: - name: Check out repository @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - python-version: [3.10x, 3.13x] + python-version: ["3.10", "3.x"] steps: - name: Check out repository