summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Dennis <robd@services-in.xr>2023-01-17 12:18:17 -0500
committerRob Dennis <robd@services-in.xr>2023-01-17 12:18:17 -0500
commitb676daf4b4bd68b89de3f79f3ef6dafe1230b8c6 (patch)
tree0f0d699a968772b889eea8fc20974a4f7d8283fe
parent6e7c6a94e6e517086a18968583cc9e21e371d581 (diff)
downloadconfigobj-git-b676daf4b4bd68b89de3f79f3ef6dafe1230b8c6.tar.gz
#226 - attempting to test across multiple python version/operating system combos
-rw-r--r--.github/workflows/python-test.yml30
1 files changed, 27 insertions, 3 deletions
diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml
index addeab6..22467a0 100644
--- a/.github/workflows/python-test.yml
+++ b/.github/workflows/python-test.yml
@@ -3,12 +3,13 @@ name: Python package
on: [push]
jobs:
- build:
+ build-on-latest:
runs-on: ubuntu-latest
strategy:
+ fails-fast: false
matrix:
- python-version: ["2.6", "2.7", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
+ python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
@@ -24,4 +25,27 @@ jobs:
pip install -e .
- name: Test with pytest
run: |
- pytest tests \ No newline at end of file
+ pytest tests
+
+ build-on-legacy:
+ runs-on: ubuntu-20.04
+ strategy:
+ fails-fast: false
+ matrix:
+ python-version: [ "2.6", "2.7", "3.3", "3.4", "3.5", "3.6" ]
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install pytest coverage
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
+ pip install -e .
+ - name: Test with pytest
+ run: |
+ pytest tests