Skip to content

Commit

Permalink
Ubuntu runner for poetry lock (vwxyzjn#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
vwxyzjn authored Jul 19, 2022
1 parent deee00d commit c41bee9
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
62 changes: 62 additions & 0 deletions .github/workflows/poetry-lock-export-ubuntu.yaml
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
2 changes: 1 addition & 1 deletion .github/workflows/poetry-lock-export.yaml
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:
Expand Down

0 comments on commit c41bee9

Please sign in to comment.