Skip to content

Commit

Permalink
Add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Feb 9, 2024
1 parent ef59e77 commit 8f22039
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -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] }'

0 comments on commit 8f22039

Please sign in to comment.