Skip to content

Commit

Permalink
new build process
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBok committed Feb 29, 2024
1 parent ca54337 commit b091ca7
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/test-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ jobs:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ 3.9, '3.10', '3.11', '3.12' ]
ext: [ tar.gz, whl ]
# ext: [ tar.gz ]
# ext: [ tar.gz, whl ]
ext: [ whl ]

steps:
- name: Setup Python ${{ matrix.python-version }}
Expand All @@ -169,7 +169,7 @@ jobs:
- name: Test Package Installation
run: |
pip${{ matrix.python-version }} install --upgrade pip
pip install --upgrade pip
# finds path to the right wheel or source file to install later
if [[ "${{ matrix.ext }}" == "whl" ]]; then
Expand All @@ -178,20 +178,18 @@ jobs:
filename="copulae-*${version}*${os}*.whl"
else
# Following packages are needed to install copulae from source
pip${{ matrix.python-version }} install numpy wheel cython scipy
python${{ matrix.python-version }} -m pip show numpy
pip install numpy wheel cython scipy
filename="copulae-*.tar.gz"
fi;
echo "Looking for file ${filename}"
file=$(find dist -name "${filename}" -type f);
pip${{ matrix.python-version }} list
echo "Running pip${{ matrix.python-version }} install --user ${file}"
pip${{ matrix.python-version }} install ${file}
pip list
pip install ${file}
# if we can import this, all should be gucci
python${{ matrix.python-version }} -c "import copulae"
python -c "import copulae"
deploy:
name: deploy packages
Expand Down

0 comments on commit b091ca7

Please sign in to comment.