Skip to content

Commit e65a0ea

Browse files
committed
Fix PATH for Windows
1 parent f909097 commit e65a0ea

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: 'test'
22

33
on:
44
push:
5-
paths:
6-
- 'examples/projects/**'
7-
- 'pyfpga/**'
8-
- 'tests/**'
5+
# paths:
6+
# - 'examples/projects/**'
7+
# - 'pyfpga/**'
8+
# - 'tests/**'
99

1010
jobs:
1111
test:

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
.PHONY: docs
44

5-
export PATH := $(PWD)/tests/mocks:$(PATH)
5+
ifeq ($(OS),Windows_NT)
6+
PATH_SEP := ;
7+
else
8+
PATH_SEP := :
9+
endif
10+
export PATH := $(CURDIR)/tests/mocks$(PATH_SEP)$(PATH)
611

712
all: docs lint test
813

@@ -15,6 +20,8 @@ lint:
1520
git diff --check --cached
1621

1722
test:
23+
$(info OS = $(OS))
24+
$(info PATH = $(PATH))
1825
pytest
1926
cd tests && bash regress.sh
2027

0 commit comments

Comments
 (0)