diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build.yml similarity index 90% rename from .github/workflows/build-and-test.yml rename to .github/workflows/build.yml index 311ff99..91b5321 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build.yml @@ -138,7 +138,7 @@ jobs: - name: Ensure cache directory exists shell: bash - if: matrix.os == 'ubuntu-20.04' && matrix.use-cross + if: matrix.os == 'ubuntu-latest' && matrix.use-cross run: | mkdir -p ${XDG_CACHE_HOME} @@ -186,27 +186,11 @@ jobs: echo "BIN_PATH=${BIN_PATH}" >> $GITHUB_OUTPUT echo "BIN_NAME=${BIN_NAME}" >> $GITHUB_OUTPUT - - name: Run the binary + - name: Run the binary to ensure it's fine shell: bash run: | ${{ steps.bin.outputs.BIN_PATH }} list &>> $GITHUB_STEP_SUMMARY - - name: Install linux dependencies - if: matrix.os == 'ubuntu-latest' - run: | - sudo dpkg --add-architecture i386 - sudo apt update - sudo apt install libc6:i386 libcrypt1:i386 - - - name: Run tests - shell: bash - run: | - python -m venv venv - if [ -d ./venv/bin ]; then VENV_BIN_PATH=./venv/bin; fi - if [ -d ./venv/Scripts ]; then VENV_BIN_PATH=./venv/Scripts; fi - ${VENV_BIN_PATH}/pip install -r requirements-dev.txt - YEN_RUST_PATH=${{ steps.bin.outputs.BIN_PATH }} ${VENV_BIN_PATH}/pytest - - name: "Artifact upload: binary" uses: actions/upload-artifact@master with: