From 0dc03fb3a9469b29d02b1be419bfd9f5cd60bf39 Mon Sep 17 00:00:00 2001 From: Santiago Debus Date: Mon, 24 Mar 2025 14:28:00 -0300 Subject: [PATCH 1/2] Update tests.yml --- .github/workflows/tests.yml | 50 ++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5647a3c..513a1f7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,28 +15,32 @@ jobs: strategy: matrix: - python-version: - - '3.7' - - '3.8' - - '3.9' - - '3.10' + python-version: [ '3.7', '3.8', '3.9', '3.10' ] steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - - name: Upgrade packaging tools - run: python -m pip install --upgrade pip setuptools virtualenv wheel - - - name: Run tests for ${{ matrix.python-version }} - run: python -m unittest + # Always checkout your repository first + - uses: actions/checkout@v2 + + # Cache pip packages + - name: Cache pip + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + + # Set up the requested Python version + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Upgrade packaging tools + run: pip install --upgrade pip setuptools virtualenv wheel + + - name: Install dependencies + run: pip install -r requirements/dev.txt + + - name: Run tests + run: python -m unittest From 8c4beaa70dec0aea6b615c5dc9ef2236712e7d23 Mon Sep 17 00:00:00 2001 From: Santiago Debus Date: Mon, 24 Mar 2025 14:29:19 -0300 Subject: [PATCH 2/2] Update tests.yml --- .github/workflows/tests.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 513a1f7..71da68a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,8 +39,3 @@ jobs: - name: Upgrade packaging tools run: pip install --upgrade pip setuptools virtualenv wheel - - name: Install dependencies - run: pip install -r requirements/dev.txt - - - name: Run tests - run: python -m unittest