From: Stephen Finucane Date: Fri, 15 Jul 2022 15:38:01 +0000 (+0100) Subject: CI: Drop Python 3.6 testing, add Python 3.10, update actions X-Git-Tag: v3.1.0~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b2e5811aa63da7eb86f80fcac1207db7030c64e;p=thirdparty%2Fpatchwork.git CI: Drop Python 3.6 testing, add Python 3.10, update actions Signed-off-by: Stephen Finucane --- diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index deeb5394..c2fd5e2e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,11 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source code - uses: actions/checkout@v2 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: "3.10" - name: Install dependencies run: python -m pip install tox - name: Run tox @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: [3.6, 3.7, 3.8, 3.9] + python: ["3.7", "3.8", "3.9", "3.10"] db: [postgres, mysql, sqlite3] env: DATABASE_TYPE: "${{ matrix.db }}" @@ -62,9 +62,9 @@ jobs: --health-retries 5 steps: - name: Checkout source code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - name: Install Python dependencies @@ -93,19 +93,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 + - name: Set up Python + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: "3.10" - name: Install dependencies run: python -m pip install tox - name: Build docs (via tox) run: tox -e docs - name: Archive build results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: html-docs-build path: docs/_build/html @@ -120,13 +120,13 @@ jobs: COMPOSE_FILE: ${{ matrix.db == 'mysql' && 'docker-compose.yml' || (matrix.db == 'postgres' && 'docker-compose-pg.yml') || 'docker-compose-sqlite3.yml' }} steps: - name: Checkout source code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 + - name: Set up Python + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: "3.10" - name: Build docker-compose service run: | docker-compose build --build-arg UID=$(id -u) --build-arg GID=$(id -g)