Skip to content

Commit

Permalink
Add Macos to CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencelier committed Nov 6, 2019
1 parent 6d2f382 commit 0d8ab84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
python-version: ["3.7", "3.8"]
os: ["ubuntu-latest"] # add 'macOS-latest' once support for Python 3.8 is ready # add "windows-latest" when possible
os: ["ubuntu-latest", "macOS-latest"] # add "windows-latest" when possible
runs-on: ${{ matrix.os }}
name: Testing - Python ${{ matrix.python-version }} - ${{ matrix.os }}
steps:
Expand All @@ -21,12 +21,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: "x64" # (x64 or x86)
- if: matrix.os == 'ubuntu-latest'
name: Install pipenv
- if: matrix.os == "ubuntu-latest"
name: Install pipenv Linux
run: sudo pip3 install pipenv
- if: matrix.os == 'windows-latest'
name: Install pipenv
- if: matrix.os == "windows-latest"
name: Install pipenv Windows
run: pip install pipenv
- if: matrix.os == "macOS-latest"
name: Install pipenv MacOS
run: brew install pipenv
- name: Install python dependencies
run: pipenv install --dev --python ${{ matrix.python-version }}
- name: Formatting check with black
Expand Down
5 changes: 0 additions & 5 deletions test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@ def test_cli_help():
assert str(output, encoding="utf-8").startswith("usage: universions")
output = check_output(["universions", "--help"])
assert str(output, encoding="utf-8").startswith("usage: universions")


def test_cli_help():
output = check_output(["universions", "java"])
assert str(output, encoding="utf-8").startswith("usage: universions")

0 comments on commit 0d8ab84

Please sign in to comment.