Skip to content

Commit

Permalink
Trac #30929: GH Actions: Update macos test environments
Browse files Browse the repository at this point in the history
https://github.com/actions/virtual-environments

Big Sur:

  actions/runner-images#1814: macOS Big
Sur (11.0) is available as a preview for GitHub Action users!

  To use it set `runs-on: macos-11.0` in your workflow file.

  Details: https://github.com/actions/virtual-
environments/blob/main/images/macos/macos-11.0-Readme.md
  - 12.3 (beta) 12C5020f        /Applications/Xcode_12.3.app
  - 12.2 12B5044c       /Applications/Xcode_12.2.app
  - 11.7 (default)      11E801a /Applications/Xcode_11.7.app

Catalina: https://github.com/actions/virtual-
environments/blob/main/images/macos/macos-10.15-Readme.md
  - 12.3 (beta) 12C5020f        /Applications/Xcode_12.3.app
  - 12.2        12B45b  /Applications/Xcode_12.2.app
  - 12.1.1      12A7605b        /Applications/Xcode_12.1.1.app
  - 12.1        12A7403 /Applications/Xcode_12.1.app
  - 12.0.1 (default)    12A7300 /Applications/Xcode_12.app
  - 11.7        11E801a /Applications/Xcode_11.7.app

Previous update: #30487 - which added testing with Xcode 12 on Catalina.

See also: #30726 GH Actions: Test optional/experimental packages with
Xcode 12

URL: https://trac.sagemath.org/30929
Reported by: mkoeppe
Ticket author(s): Matthias Koeppe
Reviewer(s): Jonathan Kliem
  • Loading branch information
Release Manager committed Dec 5, 2020
2 parents 130d7d1 + 7ae8cf1 commit 97edd46
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tox-experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,25 @@ jobs:

local-macos:

runs-on: macos-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
os: [ macos-10.15, macos-11.0 ]
tox_system_factor: [homebrew-macos, homebrew-macos-python3_xcode, homebrew-macos-python3_xcode-nokegonly, homebrew-macos-python3_pythonorg, conda-forge-macos]
tox_packages_factor: [maximal]
targets_pattern: [0-g, h-o, p, q-z]
xcode_version_factor: [11.7, default, 12.3]
env:
TOX_ENV: local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}-${{ matrix.os }}-xcode_${{ matrix.xcode_version_factor }}
TARGETS_OPTIONAL: "$( echo $(PATH=build/bin:$PATH build/bin/sage-package list :experimental: | grep -v database_stein_watkins\\$ | grep -v polytopes_db_4d | grep '^[${{ matrix.targets_pattern }}]' ) )"
steps:
- uses: actions/checkout@v2
- name: Select Xcode version
run: |
if [ ${{ matrix.xcode_version_factor }} != default ]; then sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode_version_factor }}.app; fi
- name: Install test prerequisites
run: |
brew install tox
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/tox-optional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,27 @@ jobs:

local-macos:

runs-on: macos-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
os: [ macos-10.15, macos-11.0 ]
tox_system_factor: [homebrew-macos, homebrew-macos-python3_xcode, homebrew-macos-python3_xcode-nokegonly, homebrew-macos-python3_pythonorg, conda-forge-macos]
tox_packages_factor: [maximal]
targets_pattern: [0-g, h-o, p, q-z]
xcode_version_factor: [11.7, default, 12.3]
env:
TOX_ENV: local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}-${{ matrix.os }}-xcode_${{ matrix.xcode_version_factor }}
# Test all optional packages, but do not test huge packages
# and do not test packages that require external software
TARGETS_OPTIONAL: "$( echo $(PATH=build/bin:$PATH build/bin/sage-package list :optional: | grep -v database_stein_watkins\\$ | grep -v polytopes_db_4d | grep -v cplex | grep -v gurobi | grep '^[${{ matrix.targets_pattern }}]' ) )"
steps:
- uses: actions/checkout@v2
- name: Select Xcode version
run: |
if [ ${{ matrix.xcode_version_factor }} != default ]; then sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode_version_factor }}.app; fi
- name: Install test prerequisites
run: |
brew install tox
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,18 @@ jobs:

local-macos:

runs-on: macos-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
os: [ macos-10.15, macos-11.0 ]
tox_system_factor: [homebrew-macos, homebrew-macos-python3_xcode, homebrew-macos-python3_xcode-nokegonly, homebrew-macos-python3_pythonorg, homebrew-macos-python3_xcode-gcc_spkg, conda-forge-macos]
tox_packages_factor: [minimal, standard]
xcode_version_factor: [default, 12]
xcode_version_factor: [11.7, default, 12.3]
env:
TOX_ENV: local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}-xcode_${{ matrix.xcode_version_factor }}
LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}-${{ matrix.os }}-xcode_${{ matrix.xcode_version_factor }}
steps:
- uses: actions/checkout@v2
- name: Select Xcode version
Expand Down Expand Up @@ -214,11 +215,12 @@ jobs:

needs: [dist]

runs-on: macos-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
os: [ macos-10.15, macos-11.0 ]
tox_system_factor: [macos-nobootstrap, macos-nobootstrap-python3_pythonorg]
tox_packages_factor: [minimal]
xcode_version_factor: [default, 12]
Expand Down

0 comments on commit 97edd46

Please sign in to comment.