diff --git a/.github/workflows/basic-usage.yml b/.github/workflows/basic-usage.yml index 5fee728..8d33fd4 100644 --- a/.github/workflows/basic-usage.yml +++ b/.github/workflows/basic-usage.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 1346f2a..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: CI - -on: push - -jobs: - # Check stage - check-format: - name: '๐Ÿ” Check Formatting' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: 3.12 - - run: python -m pip install -IU pip setuptools wheel - - run: pip install -IUr requirements.txt -r requirements-dev.txt - - run: black --check . - typecheck: - name: '๐Ÿ” Check Types' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: 3.12 - - run: python -m pip install -IU pip setuptools wheel - - run: pip install -IUr requirements.txt -r requirements-dev.txt - - run: mypy main.py && mypy tests - lint: - name: '๐Ÿ” Lint' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: 3.12 - - run: python -m pip install -IU pip setuptools wheel - - run: pip install -IUr requirements.txt -r requirements-dev.txt - - run: ruff check main.py tests - # Test stage - unit-test: - name: '๐Ÿงช Unit-Test' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: 3.12 - - run: python -m pip install -IU pip setuptools wheel - - run: pip install -IUr requirements.txt -r requirements-dev.txt - - run: python -m pytest diff --git a/.github/workflows/dynamic-matrix.yml b/.github/workflows/dynamic-matrix.yml index c53295d..563d259 100644 --- a/.github/workflows/dynamic-matrix.yml +++ b/.github/workflows/dynamic-matrix.yml @@ -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 diff --git a/.github/workflows/reuse-matrix.yml b/.github/workflows/reuse-matrix.yml index cceb13d..8c5be7b 100644 --- a/.github/workflows/reuse-matrix.yml +++ b/.github/workflows/reuse-matrix.yml @@ -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'