Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Feb 8, 2024
1 parent 3bb8630 commit 59ba4ac
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 64 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/basic-usage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ jobs:
uses: druzsan/setup-matrix@feature/use-python-dockerfile
with:
matrix: |
os: ubuntu-latest windows-latest macos-latest,
python-version: 3.8 3.9 3.10
os:
- ubuntu-latest
- windows-latest
- macos-latest
python-version:
- 3.8
- 3.9
- 3.10
# Setup python and print version
setup-python:
needs: setup-matrix
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/ci.yml

This file was deleted.

23 changes: 14 additions & 9 deletions .github/workflows/dynamic-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,32 @@ jobs:
setup-matrix:
runs-on: ubuntu-latest
steps:
# Setup matrix on a dev branch
- if: startsWith(github.ref, 'refs/tags/')
uses: druzsan/setup-matrix@feature/use-python-dockerfile
with:
matrix: |
os: ubuntu-latest windows-latest macos-latest,
python-version: 3.8 3.10 3.12
os: [ubuntu-latest windows-latest macos-latest]
python-version: [3.8 3.10 3.12]
# Setup matrix on the main branch
- if: github.ref == 'refs/heads/main'
uses: druzsan/setup-matrix@feature/use-python-dockerfile
with:
matrix: |
os: ubuntu-latest,
python-version: 3.8 3.10 3.12
include: |
os: windows-latest python-version: 3.8,
os: macos-latest python-version: 3.8
os: [ubuntu-latest]
python-version: [3.8 3.10 3.12]
include:
- os: windows-latest
python-version: 3.8
- os: macos-latest
python-version: 3.8
# Setup matrix on a tag
- if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
uses: druzsan/setup-matrix@feature/use-python-dockerfile
with:
matrix: |
os: ubuntu-latest,
python-version: 3.8
os: [ubuntu-latest]
python-version: [3.8]
# MATRIX environment variable is set by the last executed action
- id: setup-matrix
run: echo "matrix=$MATRIX" >> $GITHUB_OUTPUT
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reuse-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
uses: druzsan/setup-matrix@feature/use-python-dockerfile
with:
matrix: |
os: ubuntu-latest windows-latest macos-latest,
python-version: 3.8 3.10 3.12
os: [ubuntu-latest windows-latest macos-latest]
python-version: [3.8 3.10 3.12]
# Check code formatting
check-format:
name: '🔍 Check Formatting'
Expand Down

0 comments on commit 59ba4ac

Please sign in to comment.