Skip to content

Commit

Permalink
Fix brew@2 install (#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Sep 26, 2020
1 parent 6f14ba0 commit 4bcf20e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
fail-fast: false
matrix:
os:
- Ubuntu
- Windows
- MacOs
- ubuntu
- windows
- macos
py:
- 3.8
- 3.7
Expand All @@ -39,7 +39,6 @@ jobs:
- pypy2
include:
- {os: MacOs, py: brew@py3}
- {os: MacOs, py: "https://raw.githubusercontent.com/Homebrew/homebrew-core/86a44a0a552c673a05f11018459c9f5faae3becc/Formula/[email protected]"}
- {os: Ubuntu, py: 3.9-dev}
steps:
- name: install OS dependencies
Expand Down Expand Up @@ -70,10 +69,9 @@ jobs:
- name: setup brew python for test ${{ matrix.py }}
if: startsWith(matrix.py,'brew@py')
run: |
import os; import subprocess
version = "${{matrix.py}}"[-1]
subprocess.check_call(["bash", "-c", f"brew list python@{version} && brew upgrade python@{version} || brew install python@{version}"])
print(f"::add-path::/usr/local/opt/python@{version}")
import subprocess
subprocess.check_call(["bash", "-c", f"brew upgrade python@3 || brew install python@3"])
print(f"::add-path::/usr/local/opt/python@3")
shell: python
- name: pick environment to run
run: |
Expand Down
9 changes: 1 addition & 8 deletions codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,4 @@ coverage:
project:
default:
target: '80'
notify:
after_n_builds: 24
wait_for_ci: yes

comment:
layout: "diff, files"
behavior: default
require_changes: no
comment: false

0 comments on commit 4bcf20e

Please sign in to comment.