From 610b489d1812e3ad93e28a8b81dc5b5328bfc483 Mon Sep 17 00:00:00 2001 From: Carl Crowder Date: Mon, 15 May 2023 10:41:40 +0700 Subject: [PATCH] Fixing up CI config --- .github/workflows/build.yml | 28 ++++++++++++++-------------- SECURITY.md | 4 ---- tox.ini | 1 + 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c5477da7..eec2780a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,20 +12,20 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.6] - toxenv: [django_not_installed, django_is_installed, flake8, pylint, readme] + python-version: [3.7] + toxenv: [django_not_installed, flake8, pylint, readme] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Execute tests run: | - pip install tox - pip install -e .[for_tests] + pip install -U pip poetry + poetry install -E for_tests export TOXENV=${{ matrix.toxenv }} export PYTHON=${{ matrix.python-version }} @@ -44,14 +44,14 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Execute tests run: | - pip install tox - pip install -e .[for_tests] + pip install -U pip poetry + poetry install -E for_tests export DJANGO=${{ matrix.django-version }} export PYTHON=${{ matrix.python-version }} @@ -78,14 +78,14 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Execute tests run: | - pip install tox - pip install -e .[for_tests] + pip install -U pip poetry + poetry install -E for_tests export DJANGO=${{ matrix.django-version }} export PYTHON=${{ matrix.python-version }} @@ -109,13 +109,13 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Build run: | - pip install tox - pip install -e .[for_tests] + pip install -U pip poetry + poetry install -E for_tests ./scripts/build.sh diff --git a/SECURITY.md b/SECURITY.md index f2b86058..41f6aa46 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -12,7 +12,3 @@ In case you have found a security problem with pylint-django *DO NOT* report it into GitHub Issues. Instead go to [https://tidelift.com/security](https://tidelift.com/security) and follow the instructions there. - -At least one of the package maintainers ([@atodorov](http://github.com/atodorov)) -is a lifter at Tidelift and will be notified when you report the security -problem with them! diff --git a/tox.ini b/tox.ini index 40e4af3a..764b9a2e 100644 --- a/tox.ini +++ b/tox.ini @@ -12,6 +12,7 @@ envlist = requires = pip >=21.0.1 + poetry tox [testenv]