From cf79a12edf4fae709a9e105721affb7debfecb85 Mon Sep 17 00:00:00 2001 From: jtyoung84 <104453205+jtyoung84@users.noreply.github.com> Date: Wed, 27 Mar 2024 18:42:06 -0700 Subject: [PATCH] ci: update python versions --- .github/workflows/tag_and_publish.yml | 8 ++++---- .github/workflows/test_and_lint.yml | 2 +- pyproject.toml | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tag_and_publish.yml b/.github/workflows/tag_and_publish.yml index ff6a30f..67603c1 100644 --- a/.github/workflows/tag_and_publish.yml +++ b/.github/workflows/tag_and_publish.yml @@ -14,10 +14,10 @@ jobs: ref: ${{ env.DEFAULT_BRANCH }} fetch-depth: 0 token: ${{ secrets.SERVICE_TOKEN }} - - name: Set up Python 3.10 + - name: Set up Python 3.7 uses: actions/setup-python@v3 with: - python-version: '3.10' + python-version: '3.7' - name: Install dependencies run: | python -m pip install -e .[dev] --no-cache-dir @@ -96,10 +96,10 @@ jobs: - uses: actions/checkout@v3 - name: Pull latest changes run: git pull origin main - - name: Set up Python 3.10 + - name: Set up Python 3.7 uses: actions/setup-python@v3 with: - python-version: '3.10' + python-version: '3.7' - name: Install dependencies run: | pip install --upgrade setuptools wheel twine build diff --git a/.github/workflows/test_and_lint.yml b/.github/workflows/test_and_lint.yml index 33ef8a9..9c24cd8 100644 --- a/.github/workflows/test_and_lint.yml +++ b/.github/workflows/test_and_lint.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.10', '3.11' ] + python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/pyproject.toml b/pyproject.toml index 719cb53..3e98a2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" name = "aind-airflow-jobs" description = "Generated from aind-library-template" license = {text = "MIT"} -requires-python = ">=3.10" +requires-python = ">=3.7" authors = [ {name = "Allen Institute for Neural Dynamics"} ] @@ -41,7 +41,7 @@ version = {attr = "aind_airflow_jobs.__version__"} [tool.black] line-length = 79 -target_version = ['py310'] +target_version = ['py37'] exclude = ''' (