From 6c06cb40ad4eb96cd7fe7806a701933696e99747 Mon Sep 17 00:00:00 2001 From: preciz Date: Sat, 20 Jul 2024 22:40:36 +0200 Subject: [PATCH] Add test workflows and badge --- .github/workflows/test.yml | 40 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 3 --- README.md | 2 +- 3 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3cad00e --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f4a71d7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: elixir -elixir: - - 1.7.0 diff --git a/README.md b/README.md index 22b2037..f18819c 100644 --- a/README.md +++ b/README.md @@ -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