Skip to content

Commit

Permalink
Add test workflows and badge
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz committed Jul 20, 2024
1 parent 147bdf6 commit 6c06cb4
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: test

on:
pull_request:
push:
branches:
- master

jobs:
mix_test:
name: mix test (OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})

env:
MIX_ENV: test

strategy:
matrix:
include:
- elixir: 1.14.3
otp: 25.1
lint: true
installer: true


runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}

- name: Install Dependencies
run: mix deps.get --only test

- name: Run Tests
run: mix test
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Similarity

[![Build Status](https://travis-ci.org/preciz/similarity.svg?branch=master)](https://travis-ci.org/preciz/similarity)
[![test](https://github.com/preciz/tmp/actions/workflows/test.yml/badge.svg)](https://github.com/preciz/tmp/actions/workflows/test.yml)

Cosine similarity & Simhash implementation

Expand Down

0 comments on commit 6c06cb4

Please sign in to comment.