-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (50 loc) · 1.36 KB
/
pip_compile.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: wisdom-service - pip-compile
on:
push:
branches:
- main
paths:
- ansible_ai_connect/**
- requirements.in
- requirements.txt
- requirements-x86_64.txt
- requirements-aarch64.txt
- requirements-dev.in
- requirements-dev.txt
- requirements-dev-x86_64.txt
- requirements-dev-aarch64.txt
- Makefile
pull_request:
branches:
- main
paths:
- ansible_ai_connect/**
- requirements.in
- requirements.txt
- requirements-x86_64.txt
- requirements-aarch64.txt
- requirements-dev.in
- requirements-dev.txt
- requirements-dev-x86_64.txt
- requirements-dev-aarch64.txt
- Makefile
permissions:
contents: read
jobs:
selftest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Identify arch
run: |
echo "ARCH=$(uname -m)" >> "$GITHUB_ENV"
- name: install
run: |
pip install pip-tools
pip-compile --quiet -o requirements-${{ env.ARCH }}.txt requirements.in
pip-compile --quiet -o requirements-dev-${{ env.ARCH }}.txt requirements-dev.in
git diff --exit-code -- requirements-${{ env.ARCH }}.txt requirements-dev-${{ env.ARCH }}.txt