Skip to content

Commit

Permalink
Adding initial macos workflow for js-ng (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameh-farouk authored Jun 21, 2021
1 parent 811a435 commit fde0b26
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/jsng-ci-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This workflow will install Python dependencies, run tests and lint with multiple versions of Python on macos Catalina

name: jsng-ci_macos

on:
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
# max-parallel: 9
matrix:
os: [macos-10.15]
python-version: [3.6, 3.7, 3.8, 3.9]
experimental: [true]
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Gathering deps
run: |
brew update
brew install redis || brew upgrade redis
brew install tmux || brew upgrade tmux
brew install git || brew upgrade git
pip install --upgrade setuptools
# The script will download the appropriate poetry version and install it
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Install
run: |
poetry config virtualenvs.in-project true
poetry install
- name: Run tests
env:
TNAME: ${{ secrets.TNAME }}
EMAIL: ${{ secrets.EMAIL }}
WORDS: ${{ secrets.WORDS }}
FAKE_EMAIL: ${{ secrets.FAKE_EMAIL }}
FAKE_GITHUB_TOKEN: ${{ secrets.FAKE_GITHUB_TOKEN }}
run: |
POETRY=$(which poetry)
sudo --preserve-env=TNAME --preserve-env=EMAIL --preserve-env=WORDS --preserve-env=FAKE_EMAIL --preserve-env=FAKE_GITHUB_TOKEN \
$POETRY run pytest tests -sv -m "unittests"
- name: Upload coverage to Codecov
if: success()
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit fde0b26

Please sign in to comment.