2024-03-10 19:48:38 +01:00
|
|
|
---
|
|
|
|
name: Run tests
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
test-precommit:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: docker.io/brenard/python-pre-commit:latest
|
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Install python dependencies
|
|
|
|
env:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
run: |
|
|
|
|
apt-get update
|
2024-03-24 08:26:02 +01:00
|
|
|
apt-get -y install --no-install-recommends python3-requests
|
2024-03-10 19:48:38 +01:00
|
|
|
- name: Run pre-commit
|
|
|
|
run: pre-commit run --all-files
|