From 3bec59e30577cda323871325203c0664b04fbaf8 Mon Sep 17 00:00:00 2001 From: Nicco Kunzmann Date: Fri, 19 Aug 2022 14:52:03 +0100 Subject: [PATCH 1/4] enable GitHub Actions for branch 4.x - py34+py35 README in master branch: compatibility to Python versions 2.7 and 3.4+, PyPy2 and PyPy3 --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f683c3ce..397ba3d4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,6 +15,8 @@ jobs: config: # [Python version, tox env] - ["2.7", "py27"] + - ["3.4", "py34"] + - ["3.5", "py35"] - ["3.6", "py36"] - ["3.7", "py37"] - ["3.8", "py38"] From 57e53459082cd74e01a36046fe5ad538a197812f Mon Sep 17 00:00:00 2001 From: Nicco Kunzmann Date: Fri, 19 Aug 2022 16:13:43 +0100 Subject: [PATCH 2/4] specify minor version see https://github.com/collective/icalendar/runs/7919516101?check_suite_focus=true#step:3:7 --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 397ba3d4..3ef7430d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,8 +15,8 @@ jobs: config: # [Python version, tox env] - ["2.7", "py27"] - - ["3.4", "py34"] - - ["3.5", "py35"] + - ["3.4.10", "py34"] + - ["3.5.10", "py35"] - ["3.6", "py36"] - ["3.7", "py37"] - ["3.8", "py38"] From 4058cb284703b697ae730372378e44edff4d457e Mon Sep 17 00:00:00 2001 From: Nicco Kunzmann Date: Fri, 19 Aug 2022 16:22:04 +0100 Subject: [PATCH 3/4] specify operating system for Python versions not all versions are available on ubuntu-latest --- .github/workflows/tests.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ef7430d..e64ba15f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,18 +13,20 @@ jobs: strategy: matrix: config: - # [Python version, tox env] - - ["2.7", "py27"] - - ["3.4.10", "py34"] - - ["3.5.10", "py35"] - - ["3.6", "py36"] - - ["3.7", "py37"] - - ["3.8", "py38"] - - ["3.9", "py39"] - - ["3.10", "py310"] - - ["pypy3", "pypy3"] + # [Python version, tox env, OS ] + # see for version: https://github.com/raw/actions/python-versions/main/versions-manifest.json + # see for runners: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources + - ["2.7", "py27", "ubuntu-latest"] + - ["3.4.10", "py34", "ubuntu-18.04"] + - ["3.5.10", "py35", "ubuntu-latest"] + - ["3.6", "py36", "ubuntu-latest"] + - ["3.7", "py37", "ubuntu-latest"] + - ["3.8", "py38", "ubuntu-latest"] + - ["3.9", "py39", "ubuntu-latest"] + - ["3.10", "py310", "ubuntu-latest"] + - ["pypy3", "pypy3", "ubuntu-latest"] - runs-on: ubuntu-latest + runs-on: ${{ matrix.config[2] }} name: ${{ matrix.config[1] }} steps: - uses: actions/checkout@v2 From d5d868583fe8803e3cefe97dc60b8dca26bb1ed5 Mon Sep 17 00:00:00 2001 From: Nicco Kunzmann Date: Fri, 19 Aug 2022 16:30:27 +0100 Subject: [PATCH 4/4] exclude coveralls from running on py34 coveralls not working on Python 3.4.10 see https://github.com/collective/icalendar/runs/7921105431?check_suite_focus=true#step:7:47 see https://docs.github.com/en/actions/learn-github-actions/expressions#operators --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e64ba15f..0997810a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,7 +49,7 @@ jobs: - name: Test run: tox -e ${{ matrix.config[1] }} - name: Coverage - if: matrix.config[0] != '2.7' + if: matrix.config[0] != '2.7' && matrix.config[0] != '3.4.10' run: | pip install coveralls coverage-python-version coveralls --service=github