Try another grep fix #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Matrix | |
on: | |
push: | |
branches: | |
- 'extend-matrix' | |
workflow_dispatch: | |
jobs: | |
Matrix: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image-tag: ['3.12-slim-bullseye', '3.13.0rc1', '3.13.0rc1-slim', 'latest'] | |
update-strategy: [locked-install, unlocked-install, latest-install] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Docker Build | |
uses: docker/[email protected] | |
- name: Install and update dependencies | |
run: | | |
echo "Image tag: ${{ matrix.image-tag }}" | |
echo "Update strategy: ${{ matrix.update-strategy }}" | |
if [[ "${{ matrix.update-strategy }}" == "locked-install" ]]; then | |
echo "Running normal test with updated dependencies" | |
docker build --build-arg IMAGE_TAG=${{ matrix.image-tag }} --target test -t zephir-api2:test . | |
elif [[ "${{ matrix.update-strategy }}" == "unlocked-install" ]]; then | |
echo "Running normal test with updated dependencies" | |
docker build --build-arg IMAGE_TAG=${{ matrix.image-tag }} --target build-unlocked-test -t zephir-api2:test . | |
elif [[ "${{ matrix.update-strategy }}" == "latest-install" ]]; then | |
echo "Running normal test with updated dependencies" | |
docker build --build-arg IMAGE_TAG=${{ matrix.image-tag }} --target build-latest-test -t zephir-api2:test . | |
fi | |
generate-summary: | |
runs-on: ubuntu-latest | |
needs: Matrix | |
if: always() | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install Python dependencies | |
run: | | |
pip install requests pyyaml | |
- name: Generate Test Summary Report | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REPO_OWNER: ${{ github.repository_owner }} | |
REPO_NAME: ${{ github.event.repository.name }} | |
WORKFLOW_RUN_ID: ${{ github.run_id }} | |
run: | | |
python summary.py > summary_report.txt | |
cat summary_report.txt | |
# - name: Upload Summary Report Artifact | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: test-summary-report | |
# path: summary_report.txt |