-
Notifications
You must be signed in to change notification settings - Fork 642
62 lines (53 loc) · 1.77 KB
/
poetry-lock-export-ubuntu.yaml
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
53
54
55
56
57
58
59
60
61
62
name: Poetry lock and export (Ubuntu host)
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
create-ubuntu-lock-file:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Create virtualenv
run: |
which python
python -m venv venv
source venv/bin/activate
python -m pip install --constraint=.github/workflows/constraints.txt --upgrade pip
which python
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH="/Users/runner/.local/bin:$PATH"
poetry --version
poetry config virtualenvs.in-project true
poetry config virtualenvs.create false
poetry config virtualenvs.path venv
source venv/bin/activate
which python
- name: Run Poetry update
run: |
source venv/bin/activate
export PATH="/Users/runner/.local/bin:$PATH"
rm poetry.lock
poetry update isaacgym
poetry lock --no-update
poetry export -f requirements.txt --output requirements.txt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update poetry.lock and requirements.txt
title: Update poetry.lock and requirements.txt
body: Update poetry.lock and requirements.txt
branch: poetry-lock-and-export