Skip to content

Commit

Permalink
Run unit tests in the tumbleweed container
Browse files Browse the repository at this point in the history
  • Loading branch information
dcermak committed Nov 6, 2023
1 parent ba3556e commit 2253eac
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,24 @@ jobs:
ci:
name: Run the integration tests
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
python_version: ["3.11", "3.12"]
container:
image: registry.opensuse.org/opensuse/tumbleweed

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}

- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: poetry-${{ hashFiles('poetry.lock') }}

- run: pip install --upgrade poetry
- run: zypper -n ref
- run: zypper -n in python3-pipx python3-rpm

- run: |
poetry install
poetry run pytest -vv
- run: pipx install poetry

- run: poetry install
- run: poetry run pytest -vv

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 2253eac

Please sign in to comment.