Merge pull request #1095 from tahoe-lafs/3746.macos-python-3

Run macOS integration tests for Python 3

Fixes ticket:3746
This commit is contained in:
Itamar Turner-Trauring 2021-07-07 15:07:43 -07:00 committed by GitHub
commit e28e45174d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 8 deletions

View File

@ -19,7 +19,6 @@ jobs:
matrix:
os:
- windows-latest
- macos-latest
- ubuntu-latest
python-version:
- 2.7
@ -27,6 +26,12 @@ jobs:
- 3.7
- 3.8
- 3.9
include:
# On macOS don't bother with 3.6-3.8, just to get faster builds.
- os: macos-latest
python-version: 2.7
- os: macos-latest
python-version: 3.9
steps:
# See https://github.com/actions/checkout. A fetch-depth of 0
@ -157,25 +162,23 @@ jobs:
- 3.6
- 3.9
include:
# On macOS don't bother with 3.6, just to get faster builds.
- os: macos-latest
python-version: 2.7
- os: macos-latest
python-version: 3.9
steps:
- name: Install Tor [Ubuntu]
if: matrix.os == 'ubuntu-latest'
run: sudo apt install tor
- name: Install Tor [macOS, ${{ matrix.python-version }} ]
if: ${{ ( matrix.os == 'macos-latest' ) && ( matrix.python-version != '2.7' ) }}
run: brew install tor
# TODO: See https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3744.
# We have to use an older version of Tor for running integration
# tests on macOS using Python 2.7. We should stop doing this
# when Python 2.7 is dropped.
# tests on macOS.
- name: Install Tor [macOS, ${{ matrix.python-version }} ]
if: ${{ ( matrix.os == 'macos-latest' ) && ( matrix.python-version == '2.7' ) }}
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew extract --version 0.4.5.8 tor homebrew/cask
brew install tor@0.4.5.8

0
newsfragments/3746.minor Normal file
View File