1+ name : Poetry lock and export
2+
3+ on :
4+ push :
5+ branches : [main]
6+ workflow_dispatch :
7+
8+ concurrency :
9+ group : ${{ github.head_ref || github.run_id }}
10+ cancel-in-progress : true
11+
12+ jobs :
13+ create-macos-lock-file :
14+ runs-on : macos-latest
15+ timeout-minutes : 30
16+ strategy :
17+ matrix :
18+ python-version : [3.9]
19+
20+ steps :
21+ - uses : actions/checkout@v2
22+
23+ - name : Set up Python ${{ matrix.python-version }}
24+ uses : actions/setup-python@v2
25+ with :
26+ python-version : ${{ matrix.python-version }}
27+
28+ - name : Create virtualenv
29+ run : |
30+ which python
31+ python -m venv venv
32+ source venv/bin/activate
33+ python -m pip install --constraint=.github/workflows/constraints.txt --upgrade pip
34+ which python
35+
36+ - name : Install Poetry
37+ run : |
38+ curl -sSL https://install.python-poetry.org | python3 -
39+ export PATH="/Users/runner/.local/bin:$PATH"
40+ poetry --version
41+ poetry config virtualenvs.in-project true
42+ poetry config virtualenvs.create false
43+ poetry config virtualenvs.path venv
44+ source venv/bin/activate
45+ which python
46+
47+ - name : Run Poetry update
48+ run : |
49+ source venv/bin/activate
50+ export PATH="/Users/runner/.local/bin:$PATH"
51+ rm poetry.lock
52+ poetry update isaacgym
53+ poetry lock --no-update
54+ poetry export -f requirements.txt --output requirements.txt
55+
56+ - name : Create Pull Request
57+ uses : peter-evans/create-pull-request@v3
58+ with :
59+ commit-message : Update poetry.lock and requirements.txt
60+ title : Update poetry.lock and requirements.txt
61+ body : Update poetry.lock and requirements.txt
62+ branch : poetry-lock-and-export
0 commit comments