GitHub Actions: upgrade to Python 3.9
PATCH 1/2 GitHub Actions: upgrade to Python 3.9
--- .github/workflows/run_tests.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-)
.github/workflows/run_tests.yml +11 -10
@@ -10,25 +10,26 @@ jobs: matrix: compiler: [gcc, clang] python-ruby-version: - - {python: 3.8, ruby: 2.7} - - {python: 3.8, ruby: 2.7, other: test-flags-override} - - {python: 3.8, ruby: 2.7, other: test-debug} - - {python: 3.8, ruby: 2.7, other: linker-bfd} - - {python: 3.8, ruby: 2.7, other: linker-gold} + - {python: 3.9, ruby: 2.7} + - {python: 3.9, ruby: 2.7, other: test-flags-override} + - {python: 3.9, ruby: 2.7, other: test-debug} + - {python: 3.9, ruby: 2.7, other: linker-bfd} + - {python: 3.9, ruby: 2.7, other: linker-gold} # Test several Python versions with the latest Ruby version + - {python: 3.8, ruby: 2.7} - {python: 3.7, ruby: 2.7} - {python: 3.6, ruby: 2.7} - {python: 3.5, ruby: 2.7} - {python: pypy3, ruby: 2.7} # Test several Ruby versions with the latest Python version - - {python: 3.8, ruby: 2.6} - - {python: 3.8, ruby: 2.5} - - {python: 3.8, ruby: 2.4} + - {python: 3.9, ruby: 2.6} + - {python: 3.9, ruby: 2.5} + - {python: 3.9, ruby: 2.4} exclude: - compiler: clang - python-ruby-version: {python: 3.8, ruby: 2.7, other: linker-bfd} + python-ruby-version: {python: 3.9, ruby: 2.7, other: linker-bfd} - compiler: clang - python-ruby-version: {python: 3.8, ruby: 2.7, other: linker-gold} + python-ruby-version: {python: 3.9, ruby: 2.7, other: linker-gold} steps: - uses: actions/checkout@v2
Signature · 1 line
2.29.2
PATCH 2/2 GitHub Actions: drop Ruby 2.4 from matrix
When migrating to Ubuntu 20.04, Ruby 2.4 is no longer available. As the migration of "ubuntu-latest" to Ubuntu 20.04 is coming soon, according to https://github.com/actions/virtual-environments/issues/1816, remove it now.
Moreover the support of Ruby 2.4 ended a few months ago, so there is no point at supporting bindings (and testing them) for this version:
https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/
---
I hit this on https://github.com/fishilico/selinux/runs/1507627386?check_suite_focus=true
and the fix is simple.
I would like to keep using ubuntu-latest image in order to benefit from automatic "LTS upgrade" when they become available. I find it better
than having to update the Ubuntu version by hand (like was done for the Travis-CI configuration), because maintainers do not have to remember
to update the configuration file for GitHub Actions.
If you prefer using fixed Ubuntu versions (or even several Ubuntu versions!), the configuration can be modified accordingly.
.github/workflows/run_tests.yml | 1 - 1 file changed, 1 deletion(-)
.github/workflows/run_tests.yml +0 -1
@@ -24,7 +24,6 @@ jobs: # Test several Ruby versions with the latest Python version - {python: 3.9, ruby: 2.6} - {python: 3.9, ruby: 2.5} - - {python: 3.9, ruby: 2.4} exclude: - compiler: clang python-ruby-version: {python: 3.9, ruby: 2.7, other: linker-bfd}
Signature · 1 line
2.29.2
Re: [PATCH 2/2] GitHub Actions: drop Ruby 2.4 from matrix
Quoted 40 lines · Nicolas Iooss
When migrating to Ubuntu 20.04, Ruby 2.4 is no longer available. As the migration of "ubuntu-latest" to Ubuntu 20.04 is coming soon, according to https://github.com/actions/virtual-environments/issues/1816, remove it now.
Moreover the support of Ruby 2.4 ended a few months ago, so there is no point at supporting bindings (and testing them) for this version:
https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/Signed-off-by Nicolas Iooss <[email protected]>---
I hit this on https://github.com/fishilico/selinux/runs/1507627386?check_suite_focus=true
and the fix is simple.
I would like to keep using ubuntu-latest image in order to benefit from automatic "LTS upgrade" when they become available. I find it better
than having to update the Ubuntu version by hand (like was done for the Travis-CI configuration), because maintainers do not have to remember
to update the configuration file for GitHub Actions.If you prefer using fixed Ubuntu versions (or even several Ubuntu versions!), the configuration can be modified accordingly.
.github/workflows/run_tests.yml | 1 - 1 file changed, 1 deletion(-).github/workflows/run_tests.yml +0
-2@@ -24,7 +24,6 @@ jobs: # Test several Ruby versions with the latest Python version - {python: 3.9, ruby: 2.6} - {python: 3.9, ruby: 2.5} - - {python: 3.9, ruby: 2.4} exclude: - compiler: clang python-ruby-version: {python: 3.9, ruby: 2.7, other: linker-bfd} --
Quoted 2 lines
2.29.2
ack
Quoted 48 lines · Nicolas Iooss
Signed-off-by Nicolas Iooss <[email protected]>--- .github/workflows/run_tests.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-).github/workflows/run_tests.yml +11
-11@@ -10,25 +10,26 @@ jobs: matrix: compiler: [gcc, clang] python-ruby-version: - - {python: 3.8, ruby: 2.7} - - {python: 3.8, ruby: 2.7, other: test-flags-override} - - {python: 3.8, ruby: 2.7, other: test-debug} - - {python: 3.8, ruby: 2.7, other: linker-bfd} - - {python: 3.8, ruby: 2.7, other: linker-gold} + - {python: 3.9, ruby: 2.7} + - {python: 3.9, ruby: 2.7, other: test-flags-override} + - {python: 3.9, ruby: 2.7, other: test-debug} + - {python: 3.9, ruby: 2.7, other: linker-bfd} + - {python: 3.9, ruby: 2.7, other: linker-gold} # Test several Python versions with the latest Ruby version + - {python: 3.8, ruby: 2.7} - {python: 3.7, ruby: 2.7} - {python: 3.6, ruby: 2.7} - {python: 3.5, ruby: 2.7} - {python: pypy3, ruby: 2.7} # Test several Ruby versions with the latest Python version - - {python: 3.8, ruby: 2.6} - - {python: 3.8, ruby: 2.5} - - {python: 3.8, ruby: 2.4} + - {python: 3.9, ruby: 2.6} + - {python: 3.9, ruby: 2.5} + - {python: 3.9, ruby: 2.4} exclude: - compiler: clang - python-ruby-version: {python: 3.8, ruby: 2.7, other: linker-bfd} + python-ruby-version: {python: 3.9, ruby: 2.7, other: linker-bfd} - compiler: clang - python-ruby-version: {python: 3.8, ruby: 2.7, other: linker-gold} + python-ruby-version: {python: 3.9, ruby: 2.7, other: linker-gold} steps: - uses: actions/checkout@v2 --
Quoted 2 lines
2.29.2
ack
Quoted 47 lines · William Roberts
Quoted 45 lines · Nicolas Iooss
Signed-off-by Nicolas Iooss <[email protected]>--- .github/workflows/run_tests.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-).github/workflows/run_tests.yml +11
-10@@ -10,25 +10,26 @@ jobs: matrix: compiler: [gcc, clang] python-ruby-version: - - {python: 3.8, ruby: 2.7} - - {python: 3.8, ruby: 2.7, other: test-flags-override} - - {python: 3.8, ruby: 2.7, other: test-debug} - - {python: 3.8, ruby: 2.7, other: linker-bfd} - - {python: 3.8, ruby: 2.7, other: linker-gold} + - {python: 3.9, ruby: 2.7} + - {python: 3.9, ruby: 2.7, other: test-flags-override} + - {python: 3.9, ruby: 2.7, other: test-debug} + - {python: 3.9, ruby: 2.7, other: linker-bfd} + - {python: 3.9, ruby: 2.7, other: linker-gold} # Test several Python versions with the latest Ruby version + - {python: 3.8, ruby: 2.7} - {python: 3.7, ruby: 2.7} - {python: 3.6, ruby: 2.7} - {python: 3.5, ruby: 2.7} - {python: pypy3, ruby: 2.7} # Test several Ruby versions with the latest Python version - - {python: 3.8, ruby: 2.6} - - {python: 3.8, ruby: 2.5} - - {python: 3.8, ruby: 2.4} + - {python: 3.9, ruby: 2.6} + - {python: 3.9, ruby: 2.5} + - {python: 3.9, ruby: 2.4} exclude: - compiler: clang - python-ruby-version: {python: 3.8, ruby: 2.7, other: linker-bfd} + python-ruby-version: {python: 3.9, ruby: 2.7, other: linker-bfd} - compiler: clang - python-ruby-version: {python: 3.8, ruby: 2.7, other: linker-gold} + python-ruby-version: {python: 3.9, ruby: 2.7, other: linker-gold}
Quoted 7 lines
Quoted 5 lines
.github/workflows/run_tests.yml +0
-1steps: - uses: actions/checkout@v2 --2.29.2
ack
Thanks, I applied these two patches.
Nicolas