summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-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