-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.29 KB
/
ci.yaml
File metadata and controls
42 lines (35 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Run CI build script
on:
workflow_call:
pull_request:
types: [ opened, reopened, edited, synchronize ]
branches:
- master
jobs:
quality_control:
name: Execute code quality checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 10
- name: Mark repository as safe
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Setup python
uses: actions/setup-python@v4
id: setup-python
with:
python-version: 3.12
- name: Run pipenv
uses: tiagovrtr/actions-pipenv@v1
with:
pipenv-version: v2023.12.1
- run: pipenv --python ${{ steps.setup-python.outputs.python-path }}
- name: Run tests and code quality checks
run: |
pipenv install
pipenv run python bin/ci.py --verbose --teardown
env:
COMPOSER_ROOT_VERSION: ${{ vars.COMPOSER_ROOT_VERSION }}