From bbe0fdba1314b62ec411951042beb2127c5402cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Rom=C3=A1n?= Date: Wed, 11 Jan 2023 21:50:28 -0800 Subject: [PATCH] refactor(ci): remove matrix strategy settle on a single Python version --- .github/workflows/ci.yml | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f6fb85..41180a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,30 +6,24 @@ on: branches: - main +env: + PYTHON_VERSION: "3.10" + jobs: test: - name: ${{ matrix.tox-env }} + name: tox runs-on: ubuntu-20.04 - strategy: - matrix: - include: - - python-version: '2.7' - tox-env: install - - python-version: '3.10' - tox-env: lint - - python-version: '3.10' - tox-env: typecheck steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} + - uses: actions/checkout@v3 + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v4 + with: + python-version: ${{ env.PYTHON_VERSION }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip tox + - name: Install dependencies + run: | + python -m pip install --upgrade pip tox - - name: Run tests - run: | - tox -e ${{ matrix.tox-env }} + - name: Run tests + run: | + tox