Skip to content

Commit

Permalink
Quoting version numbers in yaml. Switching to official python 3.10 (#42)
Browse files Browse the repository at this point in the history
* Adding new package (and config option specifying it) needed for stylelint to process html.
* Updating stylelint configuration for unit tests to parse both html and css.

Signed-off-by: Alexander Xydes <[email protected]>
  • Loading branch information
xydesa authored Dec 21, 2021
1 parent e8eb3bb commit 828e276
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on: # NOLINT
push:
tags:
- "*"
- '*'

jobs:
build-n-publish:
Expand All @@ -15,9 +15,9 @@ jobs:
- uses: actions/checkout@master

- name: Set up Python 3.8
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: '3.8'

- uses: actions/cache@v1
if: startsWith(runner.os, 'Linux')
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [macos-10.15, ubuntu-18.04, ubuntu-20.04, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.0-rc.2]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -84,6 +84,7 @@ jobs:
sudo npm install -g jshint
sudo npm install -g markdownlint-cli
sudo npm install -g prettier
sudo npm install -g postcss-html # needed for stylelint to process html
sudo npm install -g stylelint
sudo npm install -g stylelint-config-standard
rm nodesource_setup.sh
Expand Down
18 changes: 11 additions & 7 deletions rsc/.stylelintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
extends:
- /usr/local/lib/node_modules/stylelint-config-standard

rules:
declaration-colon-space-after:
- always
- severity: warning
{
"extends": ["stylelint-config-standard"],
"rules": {
"declaration-colon-space-after": [
"always",
{
"severity": "warning"
}
],
},
}
24 changes: 17 additions & 7 deletions tests/tool/stylelint_tool_plugin/valid_package/rsc/.stylelintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
extends:
- /usr/local/lib/node_modules/stylelint-config-standard

rules:
declaration-colon-space-after:
- always
- severity: warning
{
"extends": ["stylelint-config-standard"],
"rules": {
"declaration-colon-space-after": [
"always",
{
"severity": "warning"
}
],
},
"overrides": [
{
"files": ["../*.html"],
"customSyntax": "postcss-html",
}
],
}

0 comments on commit 828e276

Please sign in to comment.