Skip to content

Commit

Permalink
Create testdevelop.yml
Browse files Browse the repository at this point in the history
Develop branch tests
  • Loading branch information
iamishalkin authored Mar 12, 2021
1 parent affd639 commit 5f3694a
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/testdevelop.yml
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

0 comments on commit 5f3694a

Please sign in to comment.