From 8f2203968a9ae1d0f3d698a29455d3ddfc963869 Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Fri, 9 Feb 2024 10:35:51 +0100 Subject: [PATCH] Add integration test --- .github/workflows/integration-test.yml | 51 ++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/integration-test.yml diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml new file mode 100644 index 0000000..274d885 --- /dev/null +++ b/.github/workflows/integration-test.yml @@ -0,0 +1,51 @@ +name: '🧪 Integration Test' + +on: + push: + schedule: + - cron: '0 6 * * *' + workflow_dispatch: + +# This is action code test, action integration test and usage example +# at the same time. + +jobs: + # Setup matrix + setup-matrix-multi-line: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.setup-matrix.outputs.matrix }} + steps: + - uses: druzsan/setup-matrix@feature/use-python-dockerfile + with: + matrix: | # Setup matrix with OS and Python version + os: [ubuntu-latest, windows-latest] + python-version: [3.8, 3.10, 3.12] + include: + - os: windows-latest + python-version: 3.8 # Only use Python 3.8 for MacOS + exclude: + - os: windows-latest + python-version: 3.12 # Do not use Python 3.12 for Windows + setup-matrix-flow-syntax: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.setup-matrix.outputs.matrix }} + steps: + - uses: druzsan/setup-matrix@feature/use-python-dockerfile + with: + matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }' + setup-matrix-empty: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.setup-matrix.outputs.matrix }} + steps: + - uses: druzsan/setup-matrix@feature/use-python-dockerfile + setup-matrix-windows: + runs-on: windows-latest + outputs: + matrix: ${{ steps.setup-matrix.outputs.matrix }} + steps: + - uses: druzsan/setup-matrix@feature/use-python-dockerfile + with: + matrix: '{ os: [ubuntu-latest, windows-latest] }'