Skip to content

Commit

Permalink
Fix workflow. (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
votdev committed Oct 16, 2022
1 parent 9e1d5c6 commit 2ecdc20
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:
branches:
- '6.x'
- 'master'
pull_request:
branches:
- '6.x'
- 'master'

env:
PYTHON_VERSION: 3.10
PYTHON_VERSION: '3.10'

jobs:
lint:
Expand All @@ -18,14 +22,12 @@ jobs:
uses: actions/checkout@v3

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-python@v3
with:
node-version: ${{ env.PYTHON_VERSION }}
python-version: ${{ env.PYTHON_VERSION }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
run: python -m pip install --upgrade pip

- name: Run lint
run: make lint
2 changes: 1 addition & 1 deletion .rstcheck.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[rstcheck]
report_level=WARNING
report_level=ERROR
ignore_directives=automodule,autosummary,autoclass
ignore_messages=(Undefined substitution referenced: "(omv|webui|version|sf|copy)")
ignore_roles=fa
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ PORT = 8080
# E.g. `make PORT=8001 autobuild`
venv:
( \
virtualenv -p python3 $(VENVDIR); \
python3 -m venv $(VENVDIR); \
. $(VENVDIR)/bin/activate; \
pip install -r requirements.txt; \
)
Expand All @@ -34,7 +34,7 @@ help:
clean:
rm -rf "$(BUILDDIR)"

lint:
lint: venv
( \
. $(VENVDIR)/bin/activate; \
rstcheck --recursive *.rst ./administration ./development ./installation ./various \
Expand Down

0 comments on commit 2ecdc20

Please sign in to comment.