Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
esseivaju committed Oct 4, 2024
1 parent a84b7fc commit 986fce5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -37,5 +39,4 @@ jobs:
flake8 .
- name: Run tests
run: |
pip install pytest requests six
pytest
hatch run test:pytest

0 comments on commit 986fce5

Please sign in to comment.