-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding initial macos workflow for js-ng (#594)
- Loading branch information
1 parent
811a435
commit fde0b26
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |