Skip to content

build(deps): bump actions/upload-artifact from 4.4.1 to 4.4.3 #1419

build(deps): bump actions/upload-artifact from 4.4.1 to 4.4.3

build(deps): bump actions/upload-artifact from 4.4.1 to 4.4.3 #1419

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-latest # Don't use this in production!
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 0
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ matrix.python }}
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
with:
path: ~/.cache/pip
key: ${{ matrix.os }}-pip-${{ secrets.CACHE_SEED }}-${{ matrix.python }}-${{ hashFiles('./poetry.lock') }}
restore-keys: ${{ matrix.os }}-pip-${{ secrets.CACHE_SEED }}-${{ matrix.python }}-
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install Poetry
run: pip install poetry
- name: Install Python dependencies
run: poetry install --no-root
- name: Lint Last Commit
if: github.event_name == 'push'
run: poetry run gitlint
- name: Lint All Commits on Pull Request
if: github.event_name == 'pull_request'
run: poetry run gitlint --commits "origin/${{ github.base_ref }}...HEAD"
- name: Format
run: poetry run pre-commit run --all-files
- name: Test
run: poetry run coverage run --module pytest
- name: Verify test coverage
run: poetry run coverage html
- name: Archive code coverage report
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: code-coverage-report
path: htmlcov
if: ${{ failure() }}
finalise:
if: always()
needs:
- build
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}