Merge pull request #30 from jrmaddison/jrmaddison/single_precision_read #65
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: test-bt_ocean | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
env: | |
KERAS_BACKEND: jax | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: bt_ocean | |
- name: Install dependencies | |
run: | | |
python3 -m venv bt_ocean_venv | |
. bt_ocean_venv/bin/activate | |
python3 -m pip install flake8 jax[cpu] keras matplotlib numpy pytest pytest-timeout pytest-xdist ruff sympy zarr | |
- name: Lint | |
run: | | |
. bt_ocean_venv/bin/activate | |
cd bt_ocean | |
flake8 | |
ruff check | |
- name: Run tests | |
run: | | |
. bt_ocean_venv/bin/activate | |
cd bt_ocean | |
pytest -v -n 2 --timeout=300 --timeout-method=thread |