From 5f3694a14072cdc62676c48787b174e9255010e1 Mon Sep 17 00:00:00 2001 From: Ivan Mishalkin Date: Fri, 12 Mar 2021 08:47:18 +0300 Subject: [PATCH] Create testdevelop.yml Develop branch tests --- .github/workflows/testdevelop.yml | 79 +++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 .github/workflows/testdevelop.yml diff --git a/.github/workflows/testdevelop.yml b/.github/workflows/testdevelop.yml new file mode 100644 index 0000000..8706b04 --- /dev/null +++ b/.github/workflows/testdevelop.yml @@ -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