Skip to content

S3 in CI

S3 in CI #553

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
platforms:
name: Python ${{ matrix.python }} on ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
platform:
- windows-latest
- ubuntu-latest
- macos-latest
python:
- "3.10"
- "3.11"
- "3.12"
permissions:
actions: write
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
pip install --upgrade pip
pip install -e '.[testing]'
- name: Test
env:
ZARR_V3_EXPERIMENTAL_API: "1"
ZARR_V3_SHARDING: "1"
run: |
python -m pytest -k test_basic
python -m pytest -k test_zarr
dcam:
name: Python ${{ matrix.python }} (DCAM)
runs-on:
- self-hosted
- dcam
- CP15440-20UP
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python:
- "3.10"
- "3.11"
- "3.12"
permissions:
actions: write
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- name: Get CMake 3.24
uses: lukka/get-cmake@latest
with:
cmakeVersion: 3.24.3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
pip install --upgrade pip
pip install -e .[testing]
- name: Test
run: |
python -m pytest -k test_dcam
egrabber:
name: Python ${{ matrix.python }} (eGrabber)
runs-on:
- self-hosted
- egrabber
- VC-151MX-M6H00
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python:
- "3.10"
- "3.11"
- "3.12"
permissions:
actions: write
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- name: Get CMake 3.24
uses: lukka/get-cmake@latest
with:
cmakeVersion: 3.24.3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
pip install --upgrade pip
pip install -e .[testing]
- name: Test
run: |
python -m pytest -k test_egrabber
spinnaker:
name: Python ${{ matrix.python }} (Spinnaker)
runs-on:
- self-hosted
- spinnaker
- BFLY-U3-23S6M-C
- ORX-10GS-51S5M-C
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python:
- "3.10"
- "3.11"
- "3.12"
permissions:
actions: write
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- name: Get CMake 3.24
uses: lukka/get-cmake@latest
with:
cmakeVersion: 3.24.3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
pip install --upgrade pip
pip install -e .[testing]
- name: Test
run: |
python -m pytest -k test_spinnaker
pvcam:
name: Python ${{ matrix.python }} (PVCAM)
runs-on:
- self-hosted
- pvcam
- BSI-Express
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python:
- "3.10"
- "3.11"
- "3.12"
permissions:
actions: write
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- name: Get CMake 3.24
uses: lukka/get-cmake@latest
with:
cmakeVersion: 3.24.3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
pip install --upgrade pip
pip install -e .[testing]
- name: Test
run: |
python -m pytest -k test_pvcam
typing:
name: mypy typing
runs-on: windows-latest # FIXME (aliddell): stubtest claims to fail to find shared libs on Linux
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install
run: |
pip install --upgrade pip
pip install -e '.[testing]'
- name: Run mypy on typed modules
run: mypy -p acquire
- name: Run stubtest on typed modules
run: stubtest acquire