File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - " **"
77
88jobs :
9- tests :
9+ test :
1010 runs-on : ubuntu-latest
1111
1212 steps :
1313 - name : Checkout repository
1414 uses : actions/checkout@v4
1515
16- - name : Install Docker Compose
17- run : sudo apt-get update && sudo apt-get install -y docker-compose
16+ - name : Set up Python
17+ uses : actions/setup-python@v4
18+ with :
19+ python-version : " 3.10"
1820
19- - name : Build and run tests
20- run : |
21- cd server/workers/persistence
22- docker-compose -f docker/docker-compose-tests.yml up --build --exit-code-from test-runner
21+ - name : Cache pip dependencies
22+ uses : actions/cache@v3
23+ with :
24+ path : ~/.cache/pip
25+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
26+ restore-keys : |
27+ ${{ runner.os }}-pip-
2328
24- - name : Clean up
25- if : always()
26- run : docker-compose -f docker/docker-compose-tests.yml down
29+ - name : Give execution permissions to script
30+ run : chmod +x tests_runners/persistence/locally.sh
31+
32+ - name : Run tests
33+ run : tests_runners/persistence/locally.sh
You can’t perform that action at this time.
0 commit comments