Skip to content

Adding remote tests and related configuration #15

Adding remote tests and related configuration

Adding remote tests and related configuration #15

Workflow file for this run

name: Test config
on:
push:
branches:
- main
- add-test-branch
jobs:
test-linux:
runs-on: ubuntu-latest
services:
localstack:
image: localstack/localstack
ports:
- 4566:4566 # Endpoint port
options: >-
--name localstack
-e SERVICES=s3
-e DEFAULT_REGION=us-east-1
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2024a
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install boto3 numpy==1.26.4 tensorstore==0.1.73
- name: Run Python script
env:
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_DEFAULT_REGION: us-east-1
S3_ENDPOINT: http://localhost:4566
run: python test/create_bucket.py
- name: Run tests
uses: matlab-actions/run-tests@v2
with:
select-by-folder: test/local; test/remote
code-coverage-cobertura: cobertura.xml
- name: Upload codecov
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
files: ./target/site/cobertura/coverage.xml
name: codecov-umbrella.xml
test-other-platforms:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [windows-latest, macos-14]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2024a
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11.9'
- name: Install additional 3p dependencies
run: |
python -m pip install --upgrade pip
pip install numpy==1.26.4 tensorstore==0.1.73
- name: Run tests
uses: matlab-actions/run-tests@v2
with:
select-by-folder: test/local