Bump cicirello/pyaction from 4.23.0 to 4.24.0 (#226) #714
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: build | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: [ '**.svg', '**.md' ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Run Python unit tests | |
run: | | |
python3 -u -m unittest tests/tests.py | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Verify that the Docker image for the action builds | |
run: docker build . --file Dockerfile | |
- name: Integration test | |
id: integration | |
uses: ./ | |
with: | |
colors: dark | |
commit-and-push: false | |
featured-repository: Chips-n-Salsa | |
animated-language-chart: true | |
locale: en | |
#fail-on-error: false | |
#category-order: general, repositories, languages, contributions | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Output the outputs of the integration test of the action | |
run: | | |
echo "exit-code = ${{ steps.integration.outputs.exit-code }}" | |
- name: Upload generated SVG as a workflow artifact for inspection if necessary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: generated-image | |
path: images/userstats.svg |