-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
79 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,79 @@ | ||
# This workflow will check package installation and runs tests in pre-release branch | ||
# On Ubuntu, Windows and MacOS | ||
# Triggered by push to develop | ||
name: Test package dev mode | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
installation: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install poetry | ||
run: | | ||
pip install poetry | ||
shell: bash | ||
- name: Set poetry env | ||
run: | | ||
poetry config virtualenvs.create false | ||
poetry install --no-root --no-dev | ||
pip install taskipy cython | ||
task build -f sdist | ||
pip uninstall --yes taskipy cython | ||
shell: bash | ||
- name: Install package artifact | ||
run: | | ||
pip install dist/dxfeed* | ||
pip uninstall --yes dxfeed | ||
shell: bash | ||
tests: | ||
needs: installation | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install poetry | ||
run: | | ||
pip install poetry | ||
shell: bash | ||
- name: Set poetry env | ||
run: | | ||
poetry config virtualenvs.create false | ||
poetry install --no-root | ||
shell: bash | ||
- name: Run tests | ||
run: | | ||
task test | ||
shell: bash | ||
- name: Generate doc | ||
run: | | ||
task html_docs | ||
shell: bash | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7 |