diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5fb907a..b6abadd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - - name: Harden Runner + - name: ๐Ÿ”’ Harden Runner uses: step-security/harden-runner@v2 with: disable-sudo: true @@ -42,19 +42,24 @@ jobs: pypi.org:443 api.github.com:443 - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} + - name: ๐Ÿ Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies + - name: โฌ‡๏ธ Install dependencies run: | python -Im pip install --upgrade pip - python -Im pip install tox tox-gh-actions - - name: Run tox targets for Python ${{ matrix.python-version }} - run: tox + python -Im pip install flit tox tox-gh-actions + python -Im flit install --symlink - - name: Upload coverage data + - name: ๐Ÿ—๏ธ Build wheel + run: python -Im flit build --format wheel + + - name: ๐Ÿงช Run tox targets for Python ${{ matrix.python-version }} + run: tox --installpkg ./dist/*.whl + + - name: โฌ†๏ธ Upload coverage data uses: actions/upload-artifact@v3 with: name: coverage-data @@ -67,7 +72,7 @@ jobs: needs: tests steps: - - name: Harden Runner + - name: ๐Ÿ”’ Harden Runner uses: step-security/harden-runner@v2 with: disable-sudo: true @@ -78,6 +83,8 @@ jobs: pypi.org:443 api.github.com:443 - uses: actions/checkout@v3 + with: + fetch-depth: 0 - uses: actions/setup-python@v4 with: # Use latest Python, so it understands all syntax. @@ -90,14 +97,14 @@ jobs: with: name: coverage-data - - name: Combine coverage + - name: ๏ผ‹ Combine coverage run: | python -Im coverage combine python -Im coverage html --skip-covered --skip-empty python -Im coverage report echo "## Coverage summary" >> $GITHUB_STEP_SUMMARY python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY - - name: Upload HTML report if check failed. + - name: ๐Ÿ“ˆ Upload HTML report if check failed. uses: actions/upload-artifact@v3 with: name: html-report