2020-06-16 20:26:58 +02:00
|
|
|
name: PyLint and MyPy
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
name: PyLint and MyPy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
2023-03-30 18:35:42 +02:00
|
|
|
fail-fast: false
|
2020-06-16 20:26:58 +02:00
|
|
|
matrix:
|
2023-10-09 08:21:36 +02:00
|
|
|
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
2020-06-16 20:26:58 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout Instaloader Repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
2023-10-09 08:21:36 +02:00
|
|
|
python -m pip install pipenv==2023.10.3
|
2023-03-30 18:35:42 +02:00
|
|
|
pipenv --python `python --version | grep -Eo '3\.[0-9]+'` sync --dev
|
2020-06-16 20:26:58 +02:00
|
|
|
- name: PyLint
|
2023-03-30 18:35:42 +02:00
|
|
|
run: pipenv --python `python --version | grep -Eo '3\.[0-9]+'` run pylint instaloader
|
2020-06-16 20:26:58 +02:00
|
|
|
- name: MyPy
|
2023-03-30 18:35:42 +02:00
|
|
|
run: pipenv --python `python --version | grep -Eo '3\.[0-9]+'` run mypy -m instaloader
|