Skip to content

Commit

Permalink
i got it
Browse files Browse the repository at this point in the history
  • Loading branch information
uriii3 committed Nov 14, 2024
1 parent 9c72fee commit 3c16b66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/binary-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,8 @@ jobs:
- name: Standarise name to make the tests easy
shell: micromamba-shell {0}
env:
GITHUB_ENV: $GITHUB_ENV
run: |
if [ "${{ matrix.os }}" == "macos-latest" ]; then
echo "ARCH=macos-arm64" >> $GITHUB_ENV
NAME="macos-arm64"
elif [ "${{ matrix.os }}" == "macos-13" ]; then
echo "ARCH=macos-x86_64" >> $GITHUB_ENV
NAME="macos-x86_64" >> $GITHUB_ENV
elif [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then
echo "ARCH=linux-glibc-2.35" >> $GITHUB_ENV
NAME="linux-glibc-2.35" >> $GITHUB_ENV
elif [ "${{ matrix.os }}" == "ubuntu-20.04" ]; then
echo "ARCH=linux-glibc-2.31" >> $GITHUB_ENV
NAME="linux-glibc-2.31"
fi
echo "NAME"
echo "ARCH"
echo "$NAME"
echo "$ARCH"
echo "$$NAME"
echo "$$ARCH"
echo "$${NAME}"
echo "${NAME}"
mv dist/copernicusmarine_$$NAME.cli ./copernicusmarine.cli
run:
make change-name-binary

- name: Run tests
env:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,6 @@ run-using-pyinstaller-ubuntu-20.04: run-using-pyinstaller-linux
# Tests for the binaries
run-tests-binaries:
pytest tests_binaries -vv --log-cli-level=info --basetemp="tests_binaries/downloads" --junitxml=report.xml --log-format "%(asctime)s %(levelname)s %(message)s" --log-date-format "%Y-%m-%d %H:%M:%S"

change-name-binary:
mv dist/copernicusmari* ./copernicusmarine.cli

0 comments on commit 3c16b66

Please sign in to comment.