Skip to content

Commit

Permalink
Update integration-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjankoehler authored Dec 12, 2024
1 parent 8c7b765 commit af9925a
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,18 @@ env:

jobs:
run-tests:
name: "Run integration tests"
runs-on: ubuntu-22.04
name: Integration Test ${{ matrix.os }}-${{ matrix.build_type }}-py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}

strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations.
# Consider changing this to true when your workflow is stable.
fail-fast: false

matrix:
os: [ubuntu-22.04]
python-version: ['3.12']

continue-on-error: true

steps:
Expand All @@ -53,6 +63,31 @@ jobs:
path: klayout-deb
key: ${{ runner.os }}-klayout-deb

- name: "[🐍] Setup python ${{ matrix.python-version }}"
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: "[🐍] Install Poetry"
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
installer-parallel: true

- name: "[🐍] Load cached venv"
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: "[🐍] Install dependencies"
run: poetry install --no-interaction --no-root
shell: bash # NOTE: required for windows poetry calls

- name: "Download klayout deb πŸ“¦"
if: steps.cache-klayout-deb.outputs.cache-hit != 'true'
run: |
Expand Down

0 comments on commit af9925a

Please sign in to comment.