From 986fce5c7db34502cd41fa5019a4f2dec642ecec Mon Sep 17 00:00:00 2001 From: Julien Esseiva Date: Thu, 3 Oct 2024 17:49:20 -0700 Subject: [PATCH] update actions --- .github/workflows/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4714050..4b040aa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,22 +11,24 @@ on: jobs: tests: name: tests - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup python version uses: actions/setup-python@v4 with: python-version: '3.11.3' architecture: x64 - name: Restore cached deps - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }} restore-keys: | ${{ runner.os }}-pip- + - name: Install Hatch + uses: pypa/hatch@a3c83ab3d481fbc2dc91dd0088628817488dd1d5 - name: Install application and deps run: | python -m pip install --upgrade pip @@ -37,5 +39,4 @@ jobs: flake8 . - name: Run tests run: | - pip install pytest requests six - pytest + hatch run test:pytest