From 6e2c26ba47d927dde292a91fcf5e697dee648507 Mon Sep 17 00:00:00 2001 From: Wu Tingfeng Date: Thu, 21 Dec 2023 19:18:20 +0800 Subject: [PATCH] Try Python images. --- .github/workflows/ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de875ad..2a92583 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,17 +5,14 @@ jobs: test-and-coverage: strategy: matrix: - python-version: ['2.7', '3.12'] + python-version: ['2.7','3.12'] + container: + image: python:${{ matrix.python-version }} runs-on: ubuntu-latest steps: - name: checkout repo content uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install Python requirements run: | pip install --upgrade pip