Skip to content

Commit

Permalink
don't run the entire test suite in build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed Jul 7, 2024
1 parent 58287f0 commit b6876d1
Showing 1 changed file with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b6876d1

Please sign in to comment.