forked from LBRYCommunity/lbry-sdk
run all steps
This commit is contained in:
parent
cb5250f630
commit
ea6be53071
1 changed files with 69 additions and 69 deletions
138
.github/workflows/main.yml
vendored
138
.github/workflows/main.yml
vendored
|
@ -2,24 +2,24 @@ name: ci
|
||||||
on: push
|
on: push
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# lint:
|
lint:
|
||||||
# name: lint
|
name: lint
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
# - uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
# with:
|
with:
|
||||||
# python-version: '3.7'
|
python-version: '3.7'
|
||||||
# - name: extract pip cache
|
- name: extract pip cache
|
||||||
# uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
# with:
|
with:
|
||||||
# path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
# key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
||||||
# restore-keys: ${{ runner.os }}-pip-
|
restore-keys: ${{ runner.os }}-pip-
|
||||||
# - run: |
|
- run: |
|
||||||
# pip install --user --upgrade pip wheel
|
pip install --user --upgrade pip wheel
|
||||||
# pip install -e .[lint]
|
pip install -e .[lint]
|
||||||
# - run: make lint
|
- run: make lint
|
||||||
|
|
||||||
tests-unit:
|
tests-unit:
|
||||||
name: "tests / unit"
|
name: "tests / unit"
|
||||||
|
@ -120,54 +120,54 @@ jobs:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
parallel-finished: true
|
parallel-finished: true
|
||||||
|
|
||||||
# build:
|
build:
|
||||||
# needs: ["lint", "tests-unit", "tests-integration"]
|
needs: ["lint", "tests-unit", "tests-integration"]
|
||||||
# name: "build"
|
name: "build"
|
||||||
# strategy:
|
strategy:
|
||||||
# matrix:
|
matrix:
|
||||||
# os:
|
os:
|
||||||
# - ubuntu-16.04
|
- ubuntu-16.04
|
||||||
# - macos-latest
|
- macos-latest
|
||||||
# - windows-latest
|
- windows-latest
|
||||||
# runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
# - uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
# with:
|
with:
|
||||||
# python-version: '3.7'
|
python-version: '3.7'
|
||||||
# - name: set pip cache dir
|
- name: set pip cache dir
|
||||||
# id: pip-cache
|
id: pip-cache
|
||||||
# run: echo "::set-output name=dir::$(pip cache dir)"
|
run: echo "::set-output name=dir::$(pip cache dir)"
|
||||||
# - name: extract pip cache
|
- name: extract pip cache
|
||||||
# uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
# with:
|
with:
|
||||||
# path: ${{ steps.pip-cache.outputs.dir }}
|
path: ${{ steps.pip-cache.outputs.dir }}
|
||||||
# key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
||||||
# restore-keys: ${{ runner.os }}-pip-
|
restore-keys: ${{ runner.os }}-pip-
|
||||||
# - if: startsWith(runner.os, 'linux')
|
- if: startsWith(runner.os, 'linux')
|
||||||
# run: sudo apt-get install libzmq3-dev
|
run: sudo apt-get install libzmq3-dev
|
||||||
# - if: startsWith(runner.os, 'mac')
|
- if: startsWith(runner.os, 'mac')
|
||||||
# run: brew install zeromq
|
run: brew install zeromq
|
||||||
# - name: Setup
|
- name: Setup
|
||||||
# run: |
|
run: |
|
||||||
# pip install --user --upgrade pip wheel
|
pip install --user --upgrade pip wheel
|
||||||
# pip install sqlalchemy@git+https://github.com/eukreign/pyinstaller.git@sqlalchemy
|
pip install sqlalchemy@git+https://github.com/eukreign/pyinstaller.git@sqlalchemy
|
||||||
# pip install -e .
|
pip install -e .
|
||||||
# - if: startsWith(runner.os, 'linux')
|
- if: startsWith(runner.os, 'linux')
|
||||||
# run: pip install psycopg2
|
run: pip install psycopg2
|
||||||
# - if: startsWith(runner.os, 'linux') || startsWith(runner.os, 'mac')
|
- if: startsWith(runner.os, 'linux') || startsWith(runner.os, 'mac')
|
||||||
# name: Build & Run (Unix)
|
name: Build & Run (Unix)
|
||||||
# run: |
|
run: |
|
||||||
# pyinstaller --onefile --name lbrynet lbry/cli.py
|
pyinstaller --onefile --name lbrynet lbry/cli.py
|
||||||
# chmod +x dist/lbrynet
|
chmod +x dist/lbrynet
|
||||||
# dist/lbrynet --version
|
dist/lbrynet --version
|
||||||
# - if: startsWith(runner.os, 'windows')
|
- if: startsWith(runner.os, 'windows')
|
||||||
# name: Build & Run (Windows)
|
name: Build & Run (Windows)
|
||||||
# run: |
|
run: |
|
||||||
# pip install pywin32
|
pip install pywin32
|
||||||
# pyinstaller --additional-hooks-dir=scripts/. --icon=icons/lbry256.ico --onefile --name lbrynet lbry/cli.py
|
pyinstaller --additional-hooks-dir=scripts/. --icon=icons/lbry256.ico --onefile --name lbrynet lbry/cli.py
|
||||||
# dist/lbrynet.exe --version
|
dist/lbrynet.exe --version
|
||||||
# - uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
# with:
|
with:
|
||||||
# name: lbrynet-${{ matrix.os }}
|
name: lbrynet-${{ matrix.os }}
|
||||||
# path: dist/
|
path: dist/
|
||||||
|
|
Loading…
Reference in a new issue