From ec17274c4a3a84ef22cb7560fe9ef461fd1f5ee0 Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 24 Jun 2022 23:47:11 +0300 Subject: [PATCH 1/4] feat: github actions --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d087401 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] + steps: + 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 From dac1ac739cd65fa7e9585e37e5f2b3889f4b523b Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 24 Jun 2022 23:48:16 +0300 Subject: [PATCH 2/4] fix: test.yml syntax --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d087401..07937f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,6 @@ jobs: matrix: python-version: ["3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] steps: - steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 From 4e78235bfad1f49bf05fc0338ad52091dd759f4b Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 24 Jun 2022 23:49:39 +0300 Subject: [PATCH 3/4] fix: drop old python versions --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07937f4..7e70af7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] + 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 }} From f366d3b9c68b67310c06bd0bbc54b85fffe67658 Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 24 Jun 2022 23:53:01 +0300 Subject: [PATCH 4/4] updated readme --- .travis.yml | 12 ------------ README.md | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 .travis.yml 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: