We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e4423 commit fcbe10fCopy full SHA for fcbe10f
.github/workflows/ci.yml
@@ -1,8 +1,12 @@
1
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
2
name: Continuous Integration Checks
3
4
-# All branches
5
-on: [push, pull_request]
+# All PRs as well as pushes to main
+on:
6
+ push:
7
+ branches:
8
+ - main
9
+ pull_request:
10
11
jobs:
12
build:
pythonsd/tests/__init__.py
@@ -214,6 +214,12 @@ def test_api_error(self):
214
self.assertContains(response, "Check out our")
215
216
217
+class TestSitemap(test.TestCase):
218
+ def test_sitemap(self):
219
+ resp = self.client.get("/sitemap.xml")
220
+ self.assertEqual(resp.status_code, 200)
221
+
222
223
class TestWSGIApp(unittest.TestCase):
224
@classmethod
225
def setUpClass(cls):
0 commit comments