Skip to content

Commit

Permalink
Run integration tests with Python 3.9 and 3.10 (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbchekin authored Jan 16, 2024
1 parent 53e277f commit ac35576
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/build_and_test_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,20 @@ jobs:
TMPDIR=/cache/${{ github.run_id }}-$RANDOM
mkdir $TMPDIR
cp -r $HOME/.cache/pip/* $TMPDIR/
mv $TMPDIR $PIP_CACHE
# ignore error if other job created a cache with the same key already
mv $TMPDIR $PIP_CACHE || true
integration-tests:
name: Integration tests
runs-on:
- glados
- spr
- pvc
strategy:
matrix:
python:
- "3.9"
- "3.10"
defaults:
run:
shell: bash -noprofile --norc -eo pipefail -c "source /home/runner/intel/oneapi/setvars.sh > /dev/null; source {0}"
Expand All @@ -85,7 +91,7 @@ jobs:
# Increase this value to reset cache
CACHE_NUMBER: 1
run: |
PIP_CACHE_KEY="pip-3.9-${{ hashFiles('python/pyproject.toml', 'python/setup.py') }}-${{ env.CACHE_NUMBER }}"
PIP_CACHE_KEY="pip-${{ matrix.python }}-${{ hashFiles('python/pyproject.toml', 'python/setup.py') }}-${{ env.CACHE_NUMBER }}"
PIP_CACHE="/cache/$PIP_CACHE_KEY"
echo "PIP_CACHE=$PIP_CACHE" >> "${GITHUB_ENV}"
if [[ -d $PIP_CACHE ]]; then
Expand All @@ -97,10 +103,10 @@ jobs:
echo "Python cache not found for key $PIP_CACHE_KEY"
fi
- name: Install Python 3.9
- name: Install Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: ${{ matrix.python }}

- name: Check if packages cache exists
env:
Expand Down Expand Up @@ -132,7 +138,8 @@ jobs:
TMPDIR=/cache/${{ github.run_id }}-$RANDOM
mkdir $TMPDIR
cp -r $HOME/packages/* $TMPDIR/
mv $TMPDIR $PACKAGES_CACHE
# ignore error if other job created a cache with the same key already
mv $TMPDIR $PACKAGES_CACHE || true
- name: Build Triton
run: |
Expand Down Expand Up @@ -196,4 +203,5 @@ jobs:
TMPDIR=/cache/${{ github.run_id }}-$RANDOM
mkdir $TMPDIR
cp -r $HOME/.cache/pip/* $TMPDIR/
mv $TMPDIR $PIP_CACHE
# ignore error if other job created a cache with the same key already
mv $TMPDIR $PIP_CACHE || true

0 comments on commit ac35576

Please sign in to comment.