Skip to content

Commit

Permalink
Handle module installtion with poetry (#67)
Browse files Browse the repository at this point in the history
* Test poetry installing modules
  • Loading branch information
michaelkaye authored Oct 12, 2022
1 parent 261d1d8 commit b29c5d9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,31 @@ jobs:
httpPort: 8008
public_baseurl: http://10.0.2.2:8008/

test-modules-poetry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Run synapse
uses: ./
with:
installer: poetry
uploadLogs: true
httpPort: 8008
customModules: "git+https://github.com/michaelkaye/noop-synapse-storage-provider.git"
customConfig: |
media_storage_providers:
- module: noop_storage_provider.NoopStorageProviderBackend
store_local: True
store_remote: True
store_synchronous: True
config:
sample: "sample"
- name: Wait for synapse to do something
run: sleep 60

test-modules:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion create.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function run() {
const toLoad = customModules.split(',');
for (let module of toLoad) {
if (installer == "poetry") {
await exec.exec("poetry", ["install", module]);
await exec.exec("poetry", ["add", module]);
} else {
await exec.exec("env/bin/pip", ["install", "-q", module]);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/create/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/create/index.js.map

Large diffs are not rendered by default.

0 comments on commit b29c5d9

Please sign in to comment.