forked from scilus/scilpy
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 1.04 KB
/
freeze_requirements.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 : Freeze release requirements
on:
release:
types: [published]
jobs:
freeze_requirements:
runs-on: scilus-runners
steps:
- name: Checkout scilpy
uses: actions/checkout@v3
- name: Fetch python version from repository
id: python-selector
run: echo "python-version=$(head -1 .python-version)" >> $GITHUB_OUTPUT
- name: Set up Python for Scilpy
uses: actions/[email protected]
with:
python-version: ${{ steps.python-selector.outputs.python-version }}
cache: 'pip'
- name: Freeze requirements
id: requirements-freezer
run: |
pip install pip-tools
pip-compile --no-upgrade --allow-unsafe -o requirements.${{ github.ref_name }}.frozen
echo "requirements=$PWD/requirements.${{ github.ref_name }}.frozen" >> $GITHUB_OUTPUT
- name: Upload frozen requirements to release
uses: softprops/action-gh-release@v1
with:
files : ${{ steps.requirements-freezer.outputs.requirements }}