units-test #277
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
name: "units-test" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 1' | |
pull_request: | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
# test action works running from the graph | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ">=3.8" | |
- name: Run synapse | |
uses: ./ | |
with: | |
uploadLogs: true | |
httpPort: 8008 | |
test-poetry-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ">=3.8" | |
- name: Run synapse | |
uses: ./ | |
with: | |
uploadLogs: true | |
httpPort: 8008 | |
installer: "poetry" | |
version: "master" | |
test-poetry: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ">=3.8" | |
- name: Run synapse | |
uses: ./ | |
with: | |
uploadLogs: true | |
httpPort: 8008 | |
installer: "poetry" | |
test-baseurl: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ">=3.8" | |
- name: Run synapse | |
uses: ./ | |
with: | |
uploadLogs: true | |
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.8" | |
- 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: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ">=3.8" | |
- name: Run synapse | |
uses: ./ | |
with: | |
uploadLogs: true | |
httpPort: 8008 | |
customModules: "git+https://github.com/michaelkaye/noop-synapse-storage-provider.git#egg=noop-synapse-storage-provider" | |
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 |