ci: change cache for arm runner #1038
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "darwin tests for 'kiara'" | |
# This workflow is triggered on pushes to the repository. | |
on: [push] | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer | |
MACOSX_DEPLOYMENT_TARGET: 10.15 | |
jobs: | |
test-darwin: | |
name: pytest on darwin | |
runs-on: macos-14 | |
strategy: | |
matrix: | |
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- name: "Set up Python ${{ matrix.python_version }}" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "${{ matrix.python_version }}" | |
- name: pip cache | |
id: pip-cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.*') }}-no-arm | |
- uses: actions/checkout@v4 | |
- name: install core_types plugin | |
run: pip install -U git+https://github.com/DHARPA-project/kiara_plugin.core_types@develop | |
- name: install tabular types plugin | |
run: pip install -U git+https://github.com/DHARPA-project/kiara_plugin.tabular@develop | |
- name: install kiara | |
run: pip install -U .[dev_testing] | |
- name: display installed kiara and module package versions | |
run: pip list | grep kiara | |
- name: test with pytest | |
run: make test | |
test-darwin-arm: | |
name: pytest on darwin (ARM) | |
runs-on: macos-14-arm64 | |
strategy: | |
matrix: | |
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- name: "Set up Python ${{ matrix.python_version }}" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "${{ matrix.python_version }}" | |
- name: pip cache | |
id: pip-cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.*') }}-arm | |
- uses: actions/checkout@v4 | |
- name: install core_types plugin | |
run: pip install -U git+https://github.com/DHARPA-project/kiara_plugin.core_types@develop | |
- name: install tabular types plugin | |
run: pip install -U git+https://github.com/DHARPA-project/kiara_plugin.tabular@develop | |
- name: install kiara | |
run: pip install -U .[dev_testing] | |
- name: display installed kiara and module package versions | |
run: pip list | grep kiara | |
- name: test with pytest | |
run: make test |