diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a0a679337d..b0b54622e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -399,9 +399,14 @@ jobs: with: name: wheels + - name: Install scikit-decide + run: | + python_version=${{ matrix.python-version }} + wheelfile=$(ls ./wheels/scikit_decide*-cp${python_version/\./}-*win*.whl) + pip install ${wheelfile}[all] + - name: Test with pytest run: | - pip install --pre --find-links ./wheels/ "scikit-decide[all]" pytest -v -s tests/autocast pytest -v -s tests/solvers/cpp pytest -v -s tests/solvers/python @@ -437,10 +442,14 @@ jobs: with: name: wheels + - name: Install scikit-decide + run: | + python_version=${{ matrix.python-version }} + wheelfile=$(ls ./wheels/scikit_decide*-cp${python_version/\./}-*macos*.whl) + pip install ${wheelfile}[all] + - name: Test with pytest run: | - env - pip install --pre --find-links ./wheels/ "scikit-decide[all]" pytest -v -s tests/autocast pytest -v -s tests/solvers/cpp pytest -v -s tests/solvers/python @@ -473,9 +482,14 @@ jobs: with: name: wheels + - name: Install scikit-decide + run: | + python_version=${{ matrix.python-version }} + wheelfile=$(ls ./wheels/scikit_decide*-cp${python_version/\./}-*manylinux*.whl) + pip install ${wheelfile}[all] + - name: Test with pytest run: | - pip install --pre --find-links ./wheels/ "scikit-decide[all]" pytest -v -s tests/autocast pytest -v -s tests/solvers/cpp pytest -v -s tests/solvers/python @@ -537,7 +551,9 @@ jobs: - name: Install scikit-decide run: | - pip install --pre --find-links ./wheels/ "scikit-decide[all]" + python_version=${{ matrix.python-version }} + wheelfile=$(ls ./wheels/scikit_decide*-cp${python_version/\./}-*manylinux*.whl) + pip install ${wheelfile}[all] - name: generate documentation run: yarn global add vuepress && yarn install && yarn docs:build && touch docs/.vuepress/dist/.nojekyll diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59ee6e62ba..006e881cba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -328,9 +328,13 @@ jobs: with: name: wheels + - name: Install scikit-decide + run: | + wheelfile=$(ls ./wheels/scikit_decide*-cp${python_version/\./}-*win*.whl) + pip install ${wheelfile}[all] + - name: Test with pytest run: | - pip install --pre --find-links ./wheels/ "scikit-decide[all]" pytest -v -s tests/autocast pytest -v -s tests/solvers/cpp pytest -v -s tests/solvers/python @@ -366,10 +370,13 @@ jobs: with: name: wheels + - name: Install scikit-decide + run: | + wheelfile=$(ls ./wheels/scikit_decide*-cp${python_version/\./}-*macos*.whl) + pip install ${wheelfile}[all] + - name: Test with pytest run: | - env - pip install --pre --find-links ./wheels/ "scikit-decide[all]" pytest -v -s tests/autocast pytest -v -s tests/solvers/cpp pytest -v -s tests/solvers/python @@ -402,9 +409,13 @@ jobs: with: name: wheels + - name: Install scikit-decide + run: | + wheelfile=$(ls ./wheels/scikit_decide*-cp${python_version/\./}-*manylinux*.whl) + pip install ${wheelfile}[all] + - name: Test with pytest run: | - pip install --pre --find-links ./wheels/ "scikit-decide[all]" pytest -v -s tests/autocast pytest -v -s tests/solvers/cpp pytest -v -s tests/solvers/python @@ -468,6 +479,7 @@ jobs: runs-on: ubuntu-latest env: DOCS_VERSION_PATH: / + python_version: "3.7" steps: - name: Get scikit-decide release version and update online docs path @@ -517,7 +529,7 @@ jobs: - name: Setup python uses: actions/setup-python@v2 with: - python-version: "3.7" + python-version: ${{ env.python_version }} - name: Download artifacts uses: actions/download-artifact@v1.0.0 @@ -526,7 +538,8 @@ jobs: - name: Install scikit-decide run: | - pip install --pre --find-links ./wheels "scikit-decide[all]" + wheelfile=$(ls ./wheels/scikit_decide*-cp${python_version/\./}-*manylinux*.whl) + pip install ${wheelfile}[all] - name: generate documentation run: yarn global add vuepress && yarn install && yarn docs:build && touch docs/.vuepress/dist/.nojekyll