22
33on :
44 push :
5- branches : [ main ]
5+ branches : [ master ]
66 pull_request :
7- branches : [ main ]
7+ branches : [ master ]
88 workflow_dispatch :
99
1010jobs :
2626 python -m venv venv
2727 ./venv/bin/pip install --upgrade pip
2828 ./venv/bin/pip install -r requirements.txt
29- ./venv/bin/pip install -r .devcontainer/requirements-override.txt
3029 ./venv/bin/pylint --rcfile ./pylint.rc pulp_manager/ || true
3130
3231 test :
@@ -47,13 +46,12 @@ jobs:
4746 python -m venv venv
4847 ./venv/bin/pip install --upgrade pip
4948 ./venv/bin/pip install -r requirements.txt
50- ./venv/bin/pip install -r .devcontainer/requirements-override.txt
5149 ./venv/bin/pip install pytest-cov
5250 ./venv/bin/pytest -v --cov=pulp_manager --cov-report=xml --cov-report=term-missing --junit-xml=pytest-results.xml
5351
5452 - name : Upload test results
5553 if : always()
56- uses : actions/upload-artifact@v3
54+ uses : actions/upload-artifact@v4
5755 with :
5856 name : test-results
5957 path : |
6967 flags : unittests
7068 name : codecov-umbrella
7169 fail_ci_if_error : false
72-
73- test-make :
74- name : Test with Make
75- runs-on : ubuntu-latest
76-
77- steps :
78- - name : Checkout code
79- uses : actions/checkout@v3
80- with :
81- submodules : recursive
82-
83- - name : Run make test in devcontainer
84- uses : devcontainers/ci@v0.3
85- with :
86- runCmd : |
87- cd /workspace
88- make t
89-
90- test-summary :
91- name : Test Summary
92- runs-on : ubuntu-latest
93- needs : [lint, test, test-make]
94- if : always()
95-
96- steps :
97- - name : Summary
98- run : |
99- echo "## CI Summary" >> $GITHUB_STEP_SUMMARY
100- echo "" >> $GITHUB_STEP_SUMMARY
101-
102- if [ "${{ needs.lint.result }}" == "success" ]; then
103- echo "✅ Linting passed" >> $GITHUB_STEP_SUMMARY
104- else
105- echo "❌ Linting failed" >> $GITHUB_STEP_SUMMARY
106- fi
107-
108- if [ "${{ needs.test.result }}" == "success" ]; then
109- echo "✅ Tests passed" >> $GITHUB_STEP_SUMMARY
110- else
111- echo "❌ Tests failed" >> $GITHUB_STEP_SUMMARY
112- fi
113-
114- if [ "${{ needs.test-make.result }}" == "success" ]; then
115- echo "✅ Make test passed" >> $GITHUB_STEP_SUMMARY
116- else
117- echo "❌ Make test failed" >> $GITHUB_STEP_SUMMARY
118- fi
0 commit comments