Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GITHUB_OUTPUT envvar instead of set-output command as the latter is deprecated #2855

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 48 additions & 49 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,59 +10,58 @@ on:

jobs:
build-and-test:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.5, 3.6]
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install TA lib (ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
wget https://s3.amazonaws.com/quantopian-orchestration/packages/ta-lib-0.4.0-src.tar.gz
tar xvfz ta-lib-0.4.0-src.tar.gz
cd ta-lib
./configure
make
sudo make install
sudo ldconfig
- name: Install TA lib (macOS)
if: startsWith(matrix.os, 'macos')
run: |
brew install ta-lib
- name: Set Lockfile py 35
if: matrix.python-version == 3.5
run: |
echo ::set-env name=PIP_CONSTRAINT::etc/requirements_locked.txt
- name: Set Lockfile py36
if: matrix.python-version == 3.6
run: |
echo ::set-env name=PIP_CONSTRAINT::etc/requirements_py36_locked.txt
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-py${{matrix.python-version}}-${{ hashFiles(env.PIP_CONSTRAINT) }}
restore-keys: |
${{ runner.os }}-pip-py${{matrix.python-version}}-
- name: Install requirements
run: |
python -m pip install wheel
python -m pip install -r etc/requirements_build.in
python -m pip install --no-binary=bcolz -e .[all] -r etc/requirements_blaze.in
- name: Run tests
run: |
nosetests tests
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install TA lib (ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
wget https://s3.amazonaws.com/quantopian-orchestration/packages/ta-lib-0.4.0-src.tar.gz
tar xvfz ta-lib-0.4.0-src.tar.gz
cd ta-lib
./configure
make
sudo make install
sudo ldconfig
- name: Install TA lib (macOS)
if: startsWith(matrix.os, 'macos')
run: |
brew install ta-lib
- name: Set Lockfile py 35
if: matrix.python-version == 3.5
run: |
echo ::set-env name=PIP_CONSTRAINT::etc/requirements_locked.txt
- name: Set Lockfile py36
if: matrix.python-version == 3.6
run: |
echo ::set-env name=PIP_CONSTRAINT::etc/requirements_py36_locked.txt
- name: Get pip cache dir
id: pip-cache
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only change being proposed in this PR. The rest of the changes are formatting corrections made by my IDE.

- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-py${{matrix.python-version}}-${{ hashFiles(env.PIP_CONSTRAINT) }}
restore-keys: |
${{ runner.os }}-pip-py${{matrix.python-version}}-
- name: Install requirements
run: |
python -m pip install wheel
python -m pip install -r etc/requirements_build.in
python -m pip install --no-binary=bcolz -e .[all] -r etc/requirements_blaze.in
- name: Run tests
run: |
nosetests tests