Skip to content

Commit

Permalink
ci: use ubuntu-24.04 for more recent podman verison
Browse files Browse the repository at this point in the history
The current images would use podman 3.x

Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed Jul 28, 2024
1 parent c543d89 commit 4b9cac7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand Down
54 changes: 27 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand All @@ -25,37 +25,37 @@ jobs:
name: Python ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Install ImageBuilder prereqs
run: sudo apt-get install -y libncurses5-dev
- name: Install ImageBuilder prereqs
run: sudo apt-get install -y libncurses5-dev

- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependencies
run: |
python -m pip install --upgrade poetry
poetry install
- name: Install dependencies
run: |
python -m pip install --upgrade poetry
poetry install
- name: Lint with ruff
run: |
poetry run ruff check .
- name: Lint with ruff
run: |
poetry run ruff check .
- name: Stylecheck with ruff
run: |
poetry run ruff format --check .
- name: Stylecheck with ruff
run: |
poetry run ruff format --check .
- name: Test with pytest
run: |
podman system service --time=0 unix://tmp/podman.sock &
export CONTAINER_HOST="unix:///tmp/podman.sock"
poetry run coverage run -m pytest -vv --runslow
poetry run coverage xml
- name: Test with pytest
run: |
podman system service --time=0 unix:///tmp/podman.sock &
export CONTAINER_HOST="unix:///tmp/podman.sock"
poetry run coverage run -m pytest -vv --runslow
poetry run coverage xml
- name: Codecov
uses: codecov/codecov-action@v4
- name: Codecov
uses: codecov/codecov-action@v4

0 comments on commit 4b9cac7

Please sign in to comment.