Skip to content

Commit 53b943b

Browse files
authored
Merge pull request #2 from G-Research/fix-ci
Hopefully fixing github actions run
2 parents 62d866b + c8851e1 commit 53b943b

File tree

2 files changed

+4
-53
lines changed

2 files changed

+4
-53
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
"forwardPorts": [8080, 9300, 3306, 6379],
5454

55-
"postCreateCommand": "sudo chown -R vscode:vscode /workspace && cd /workspace && python -m venv venv && ./venv/bin/pip install --upgrade pip && ./venv/bin/pip install -r requirements.txt && ./venv/bin/pip install -r .devcontainer/requirements-override.txt",
55+
"postCreateCommand": "sudo chown -R vscode:vscode /workspace && cd /workspace && python -m venv venv && ./venv/bin/pip install --upgrade pip && ./venv/bin/pip install -r requirements.txt",
5656

5757
"postStartCommand": "echo 'DevContainer ready with MariaDB and Redis running'",
5858

.github/workflows/ci.yml

Lines changed: 3 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ master ]
66
pull_request:
7-
branches: [ main ]
7+
branches: [ master ]
88
workflow_dispatch:
99

1010
jobs:
@@ -26,7 +26,6 @@ jobs:
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: |
@@ -69,50 +67,3 @@ jobs:
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

Comments
 (0)