Skip to content

Commit

Permalink
chg: Bump CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jan 9, 2024
1 parent bb307d7 commit 783ac8d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 16 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.10', '3.11', '3.12']
name: Python ${{ matrix.python-version }} sample

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}
cache: 'poetry'

- name: Install poetry
run: |
Expand Down
39 changes: 26 additions & 13 deletions .github/workflows/test_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,55 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
name: Python ${{ matrix.python-version }} sample

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}
cache: 'poetry'

- name: Install with poetry
run: |
python -m pip install --upgrade pip poetry
poetry install
echo PHISHTANK_HOME=`pwd` > .env
- name: Clone Redis
uses: actions/checkout@v4
with:
repository: redis/redis
path: redis-tmp
ref: 7.2

- name: Install redis
- name: Install and setup redis
run: |
mv redis-tmp ../redis
pushd ..
git clone https://github.com/antirez/redis.git
pushd redis
git checkout 6.2
make
popd
popd
- name: Run API tests
- name: Install with poetry
run: |
python -m pip install --upgrade pip poetry
poetry install
echo PHISHTANK_HOME=`pwd` > .env
poetry run start
git clone https://github.com/Lookyloo/PyPhishtankLookup.git
- name: Clone PyPhishtankLookup
uses: actions/checkout@v4
with:
repository: Lookyloo/PyPhishtankLookup
path: PyPhishtankLookup

- name: Run API tests
run: |
pushd PyPhishtankLookup
poetry install
poetry run pytest tests/test_web.py
popd
- name: Stop instance
run: |
poetry run stop
- name: Test update script
Expand Down

0 comments on commit 783ac8d

Please sign in to comment.