Skip to content

feat[next]: DaCe support for can_deref #479

feat[next]: DaCe support for can_deref

feat[next]: DaCe support for can_deref #479

Workflow file for this run

name: "Test Storage (CPU)"
on:
push:
branches:
- main
pull_request:
branches:
- main
paths: # Run when gt4py.storage files (or package settings) are changed
- "src/gt4py/storage/**"
- "src/gt4py/cartesian/backend/**" # For DaCe storages
- "tests/storage_tests/**"
- "workflows/**"
- "*.cfg"
- "*.ini"
- "*.toml"
- "*.yml"
jobs:
test-storage:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
backends: [internal-cpu, dace-cpu]
os: ["ubuntu-latest"]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
**/pyproject.toml
**/constraints.txt
**/requirements-dev.txt
- name: Install python dependencies
run: |
python -m pip install -c ./constraints.txt pip setuptools wheel
python -m pip install -r ./requirements-dev.txt
- name: Run tox tests
env:
NUM_PROCESSES: auto
shell: bash
run: |
pyversion=${{ matrix.python-version }}
pyversion_no_dot=${pyversion//./}
tox run -e storage-py${pyversion_no_dot}-${{ matrix.backends }}
# mv coverage.json coverage-py${{ matrix.python-version }}-${{ matrix.os }}.json
# - name: Upload coverage.json artifact
# uses: actions/upload-artifact@v3
# with:
# name: coverage-py${{ matrix.python-version }}-${{ matrix.os }}
# path: coverage-py${{ matrix.python-version }}-${{ matrix.os }}.json
# - name: Gather info
# run: |
# echo ${{ github.ref_type }} >> info.txt
# echo ${{ github.ref }} >> info.txt
# echo ${{ github.sha }} >> info.txt
# echo ${{ github.event.number }} >> info.txt
# echo ${{ github.event.pull_request.head.ref }} >> info.txt
# echo ${{ github.event.pull_request.head.sha }} >> info.txt
# echo ${{ github.run_id }} >> info.txt
# - name: Upload info artifact
# uses: actions/upload-artifact@v3
# with:
# name: info-py${{ matrix.python-version }}-${{ matrix.os }}
# path: info.txt