From d84b4bb23da347d652ca298ef417d3c938ee426b Mon Sep 17 00:00:00 2001 From: Jan Brasna <1784648+janbrasna@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:06:31 +0200 Subject: [PATCH] Add test runs on GitHub Actions --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 4 ---- README.md | 2 +- 3 files changed, 28 insertions(+), 5 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..e47bcb2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: cipherscan + +on: + workflow_dispatch: + pull_request: + push: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.10", "3.12"] + steps: + - uses: actions/checkout@v4 + - name: Test Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install + run: | + python -m pip install six + - name: Scan + run: | + ./cipherscan example.org diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3386d91..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -dist: trusty -language: python -script: -- ./cipherscan google.com diff --git a/README.md b/README.md index 2459707..6bf321c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ CipherScan ========== -[![Build Status](https://travis-ci.org/mozilla/cipherscan.svg?branch=master)](https://travis-ci.org/mozilla/cipherscan) +[![CI](https://github.com/mozilla/cipherscan/actions/workflows/test.yml/badge.svg)](https://github.com/mozilla/cipherscan/actions/workflows/test.yml) ![cipherscan](https://pbs.twimg.com/media/CPbjvCFW8AAnUK3.png:large)