forked from vwxyzjn/cleanrl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ubuntu runner for poetry lock (vwxyzjn#236)
- Loading branch information
Showing
2 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Poetry lock and export | ||
name: Poetry lock and export (MacOs host) | ||
|
||
on: | ||
push: | ||
|