Skip to content

Commit

Permalink
- backport switch to GHA Windows testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Jun 8, 2021
1 parent f4bd4dc commit cfe41b5
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ max_line_length = off
# 4 space indentation
indent_size = 4

[*.{yml,zpt,pt,dtml}]
[*.{yml,zpt,pt,dtml,zcml}]
# 2 space indentation
indent_size = 2

Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ on:
pull_request:
schedule:
- cron: '0 12 * * 0' # run once a week on Sunday
# Allow to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
strategy:
# We want to see all failures:
fail-fast: false
matrix:
os:
- ubuntu
- windows
config:
# [Python version, tox env]
- ["3.8", "lint"]
Expand All @@ -24,9 +31,13 @@ jobs:
- ["3.8", "py38"]
- ["3.8", "docs"]
- ["3.8", "coverage"]
exclude:
- { os: windows, config: ["3.8", "lint"] }
- { os: windows, config: ["3.8", "docs"] }
- { os: windows, config: ["3.8", "coverage"] }

runs-on: ubuntu-latest
name: ${{ matrix.config[1] }}
runs-on: ${{ matrix.os }}-latest
name: ${{ matrix.os }}-${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ include *.rst
include *.txt
include buildout.cfg
include tox.ini
include appveyor.yml

recursive-include docs *.bat
recursive-include docs *.py
Expand Down
22 changes: 0 additions & 22 deletions appveyor.yml

This file was deleted.

5 changes: 2 additions & 3 deletions src/Products/Five/browser/tests/pages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,8 @@ Test access to ``context`` from ZPTs:
Test macro access from ZPT pages:

>>> view = self.folder.unrestrictedTraverse('testoid/seagull.html')
>>> view() == ('<html><head><title>bird macro</title></head>'
... '<body>Color: gray</body></html>\n')
True
>>> print(view())
<html><head><title>bird macro</title></head><body>Color: gray</body></html>

test_zpt_things:

Expand Down
2 changes: 1 addition & 1 deletion src/Products/Five/browser/tests/test_pagetemplatefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test___call___no_previous_content_type(self):
view = self._makeView(context, request)
vptf = self._makeOne('templates/dirpage1.pt')
body = vptf(view)
self.assertEqual(body, DIRPAGE1)
self.assertEqual(body.replace('\r\n', '\n'), DIRPAGE1)
self.assertEqual(response._headers['Content-Type'], 'text/html')

def test___call___w_previous_content_type(self):
Expand Down
4 changes: 2 additions & 2 deletions src/Zope2/App/tests/test_safe_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def test_cook_zope3_page_templates_normal(self):
# Need to pass a namespace.
namespace = {'context': self.app}
self.assertEqual(
pt.pt_render(namespace).strip(),
pt.pt_render(namespace).strip().replace('\r\n', '\n'),
u'<p>&lt;application at &gt;</p>\n'
u'<p>&lt;APPLICATION AT &gt;</p>')

Expand All @@ -201,7 +201,7 @@ def test_cook_zope3_page_templates_using_format(self):
# template.
self.app.test_folder_1_.__roles__ = ['Manager']
self.assertEqual(
pt.pt_render(namespace).strip(),
pt.pt_render(namespace).strip().replace('\r\n', '\n'),
u"<p>class of &lt;application at &gt; is "
u"&lt;class 'ofs.application.application'&gt;</p>\n"
u"<p>CLASS OF &lt;APPLICATION AT &gt; IS "
Expand Down

0 comments on commit cfe41b5

Please sign in to comment.