Skip to content

Add option to not raise if output is none, resolves #538 #1432

Add option to not raise if output is none, resolves #538

Add option to not raise if output is none, resolves #538 #1432

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- main
env:
MIX_ENV: test
XLA_CACHE_DIR: ${{ github.workspace }}/cache/xla
LIBTORCH_DIR: ${{ github.workspace }}/cache/torch
jobs:
codespell:
runs-on: ubuntu-latest
steps:
- uses: codespell-project/actions-codespell@v2
with:
skip: deps
ignore_words_list: whn,ehr
main:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- otp: "26.1.1"
elixir: "1.15.6"
lint: true
- otp: "25.3.2.6"
elixir: "1.14.5"
- otp: "25.3.2.6"
elixir: "1.14.5"
test_command_prepend: "USE_EXLA=true"
- otp: "25.3.2.6"
elixir: "1.14.5"
test_command_prepend: "USE_TORCHX=true"
steps:
- uses: actions/checkout@v3
- name: Install Erlang & Elixir
uses: erlef/setup-beam@v1
with:
otp-version: "${{ matrix.otp }}"
elixir-version: "${{ matrix.elixir }}"
- uses: actions/cache@v3
with:
path: |
deps
_build
cache
key: ${{ runner.os }}-mix-${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.test_command_prepend }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- name: Install mix dependencies
run: mix deps.get
- name: Check formatting
if: ${{ matrix.lint }}
run: mix format --check-formatted
- name: Check unused deps
if: ${{ matrix.lint }}
run: mix deps.unlock --check-unused
- name: Run tests
run: ${{ matrix.test_command_prepend }} mix do compile --skip-optional-deps --warnings-as-errors, test