-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.19 KB
/
ci.yml
File metadata and controls
41 lines (33 loc) · 1.19 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
name: Run unit tests and code quality checks of runopencode/phplib
on:
pull_request:
types: [ opened, reopened, edited, synchronize ]
branches:
- master
- dev
jobs:
quality_control:
name: Execute code quality checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Create .env file
run: |
echo "SYSTEM_TIMEZONE=UTC" >> .env
- 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