caching pip depedencies
This commit is contained in:
parent
45f9a81e52
commit
50663f486f
|
@ -31,14 +31,19 @@ jobs:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
|
|
||||||
|
- name: Create pip requirements
|
||||||
|
run: |
|
||||||
|
echo "matrix-synapse" > requirements.txt
|
||||||
|
|
||||||
- name: Set up Python 3.8
|
- name: Set up Python 3.8
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
|
cache: 'pip'
|
||||||
|
|
||||||
- name: Start synapse server
|
- name: Start synapse server
|
||||||
run: |
|
run: |
|
||||||
pip install matrix-synapse
|
pip install -r requirements.txt
|
||||||
curl -sL https://gist.githubusercontent.com/ouchadam/e3ad09ec382bd91a66d88ab575ea7c31/raw/run.sh \
|
curl -sL https://gist.githubusercontent.com/ouchadam/e3ad09ec382bd91a66d88ab575ea7c31/raw/run.sh \
|
||||||
| bash -s -- --no-rate-limit
|
| bash -s -- --no-rate-limit
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ import test.flowTest
|
||||||
import test.restoreLoginAndInitialSync
|
import test.restoreLoginAndInitialSync
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
private const val TEST_SERVER_URL_REDIRECT = "https://localhost:8080/"
|
|
||||||
private const val HTTPS_TEST_SERVER_URL = "https://localhost:8080/"
|
private const val HTTPS_TEST_SERVER_URL = "https://localhost:8080/"
|
||||||
|
|
||||||
@TestMethodOrder(MethodOrderer.OrderAnnotation::class)
|
@TestMethodOrder(MethodOrderer.OrderAnnotation::class)
|
||||||
|
@ -122,7 +121,7 @@ private suspend fun createAndRegisterAccount(): TestUser {
|
||||||
.register(aUserName, aUser.password, homeServer = HTTPS_TEST_SERVER_URL)
|
.register(aUserName, aUser.password, homeServer = HTTPS_TEST_SERVER_URL)
|
||||||
|
|
||||||
result.accessToken shouldNotBeEqualTo null
|
result.accessToken shouldNotBeEqualTo null
|
||||||
result.homeServer shouldBeEqualTo HomeServerUrl(TEST_SERVER_URL_REDIRECT)
|
result.homeServer shouldBeEqualTo HomeServerUrl(HTTPS_TEST_SERVER_URL)
|
||||||
result.userId shouldBeEqualTo userId
|
result.userId shouldBeEqualTo userId
|
||||||
return aUser
|
return aUser
|
||||||
}
|
}
|
||||||
|
@ -135,7 +134,7 @@ private suspend fun login(user: TestUser) {
|
||||||
.login(userName = user.roomMember.id.value, password = user.password)
|
.login(userName = user.roomMember.id.value, password = user.password)
|
||||||
|
|
||||||
result.accessToken shouldNotBeEqualTo null
|
result.accessToken shouldNotBeEqualTo null
|
||||||
result.homeServer shouldBeEqualTo HomeServerUrl(TEST_SERVER_URL_REDIRECT)
|
result.homeServer shouldBeEqualTo HomeServerUrl(HTTPS_TEST_SERVER_URL)
|
||||||
result.userId shouldBeEqualTo user.roomMember.id
|
result.userId shouldBeEqualTo user.roomMember.id
|
||||||
|
|
||||||
testMatrix.saveLogin(result)
|
testMatrix.saveLogin(result)
|
||||||
|
|
Loading…
Reference in New Issue