Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: 3.x
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
node-version: 18
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: v1/${{ runner.os }}/pip/${{ hashFiles('**/{requirements,development}.txt') }}
restore-keys: v1/${{ runner.os }}/pip/
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/.npm
key: v1/${{ runner.os }}/node-12/${{ hashFiles('**/package-lock.lock') }}
restore-keys: v1/${{ runner.os }}/node-12/
key: v1/${{ runner.os }}/node-18/${{ hashFiles('**/package-lock.lock') }}
restore-keys: v1/${{ runner.os }}/node-18/
- name: Run tests
uses: percy/exec-action@v0.3.1
with:
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ VENVDEPS=$(REQUIREMENTS setup.py)
NPMDEPS=$(package-lock.json)

$(VENV):
python -m venv .venv
$(VENV)/python -m pip install --upgrade pip
python3 -m venv .venv
$(VENV)/python3 -m pip install --upgrade pip

$(VENV)/$(MARKER): $(VENVDEPS) | $(VENV)
$(VENV)/pip install $(foreach path,$(REQUIREMENTS),-r $(path))
Expand All @@ -27,7 +27,7 @@ clean:
rm -rf $$(cat .gitignore)

serve:
$(VENV)/python -m http.server 8000
$(VENV)/python3 -m http.server 8000

test: install
$(NPM)/percy exec -- $(VENV)/python tests/todo.py
$(NPM)/percy exec -- $(VENV)/python3 tests/todo.py
Loading