-
Notifications
You must be signed in to change notification settings - Fork 21
34 lines (34 loc) · 1001 Bytes
/
acceptance.yml
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
name: acceptance
on:
push:
pull_request:
branches:
- main
- 'stable-*'
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install pipenv
run: pip install pipenv
- name: Week number
id: weeknum
run: |
echo "weeknum=$(/bin/date -u '+%g.%V')" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@v4
with:
path: |
~/.local/share/virtualenvs
Pipfile.lock
key: ${{ runner.os }}-w${{ steps.weeknum.outputs.weeknum }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile') }}
- name: Install dependencies
run: PIPENV_VERBOSITY=-1 make fake-sync pipenv-dev
- name: Run acceptance check
run: PIPENV_VERBOSITY=-1 make -k commit-acceptance