diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7e70af7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: "${{ matrix.python-version }}" + - name: Install pytest + run: | + python -m pip install --upgrade pip + pip install pytest + - name: Run pytest + run: | + pytest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 197b8e4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python -matrix: - include: - - python: 3.4 - - python: 3.5 - - python: 3.6 - - python: 3.7 - - python: 3.8 - dist: xenial - sudo: true -script: - - python -m pytest diff --git a/README.md b/README.md index 6b4eb46..0c7ae76 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This script is able to predict python's `random` module random generated values. -Script was tested against **Python 3.5.2**, **3.6.2.** and **3.7.0.** Should work against other versions of Python as well, since the generator is pretty much the same in **2.7.12**. Enjoy! +Script was tested against Python versions from **3.5** to **3.10**. Should work against other versions of Python as well, since the generator is pretty much the same in **2.7.12**. Enjoy! ## Installation To install randcrack, simply: