Skip to content

Commit 9346872

Browse files
committed
fix(ci): remove app setup from tests
running migrations is not needed since tests will migrate the database, but we still need to collect static files and generate the static files manifest.
1 parent e48c500 commit 9346872

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/tests-pytest.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ jobs:
1717
- name: Check out code
1818
uses: actions/checkout@v4
1919

20-
- name: Install system packages
21-
run: |
22-
sudo apt-get update -y
23-
sudo apt-get install -y gettext
24-
2520
- uses: actions/setup-python@v5
2621
with:
2722
python-version-file: .github/workflows/.python-version
@@ -33,8 +28,8 @@ jobs:
3328
pip install -e .[test]
3429
pip install -r streamlit_app/requirements.txt
3530
36-
- name: Run setup
37-
run: ./bin/init.sh
31+
- name: Collect static files
32+
run: python manage.py collectstatic --no-input
3833

3934
- name: Run tests
4035
run: ./tests/pytest/run.sh

0 commit comments

Comments
 (0)