From f8dc014e4caa5d40a7e5cf2666eb1df770bb30cf Mon Sep 17 00:00:00 2001 From: Jirka Date: Wed, 21 Jul 2021 09:53:36 +0200 Subject: [PATCH] CI: install whl on Win --- .github/workflows/ci_pkg-install.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci_pkg-install.yml b/.github/workflows/ci_pkg-install.yml index a8aa79f..b132aee 100644 --- a/.github/workflows/ci_pkg-install.yml +++ b/.github/workflows/ci_pkg-install.yml @@ -39,9 +39,8 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, macOS-10.15] # , windows-2019 - python-version: [3.7] - + os: [ubuntu-20.04, macOS-10.15, windows-2019] + python-version: [3.8] steps: - uses: actions/checkout@master - uses: actions/setup-python@v2 @@ -50,14 +49,11 @@ jobs: - name: Create package run: | - python setup.py sdist + pip install cython setuptools wheel + python setup.py sdist bdist_wheel - name: Install package + working-directory: ./dist run: | - pip install virtualenv - virtualenv vEnv - source vEnv/bin/activate - pip install dist/* - cd .. & python -c "import birl ; print(birl.__version__)" - deactivate - rm -rf vEnv + pip install $(python -c "import glob ; pkg = glob.glob('*.whl')[0] ; print(pkg)") + python -c "import birl ; print(birl.__version__)"