From 92dccd0751fe3522095ab2eecb76efc696fb84d4 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Tue, 7 Sep 2021 14:02:34 -0500 Subject: Only use and install `mslex` on Windows (#36) * Fix lint issues where encoding was not specified * Only use and install mslex on Windows * Escape backslash in test_windows * Alter Windows CI name Since we actually have some tests other than the path sanity test, it probably makes sense to just call it a Windows test now. * Disable pylint issue with mslex import It's raising an unable to import issue with that line, which makes sense since mslex wouldn't be installed on any other platform other than Windows, but it also wouldn't be run on any other platform so it seems to be a non issue. Co-authored-by: Eugene Triguba --- .github/workflows/windows.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/windows_sanity.yml | 27 --------------------------- 2 files changed, 28 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/windows.yml delete mode 100644 .github/workflows/windows_sanity.yml (limited to '.github') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..980d0bd --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,28 @@ +# This workflow checks that windows paths (a\b\c) work correctly when +# passed as args to taskipy and that mslex is installed. + +name: Taskipy Windows Tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install Poetry + run: | + python -m pip install --upgrade pip + pip install poetry + - name: Install dependencies + run: poetry install + - name: Test Windows + run: poetry run task test_windows diff --git a/.github/workflows/windows_sanity.yml b/.github/workflows/windows_sanity.yml deleted file mode 100644 index a27afb3..0000000 --- a/.github/workflows/windows_sanity.yml +++ /dev/null @@ -1,27 +0,0 @@ -# This workflow checks that windows paths (a\b\c) work correctly when passed as args to taskipy - -name: Taskipy Windows Sanity Test - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Install Poetry - run: | - python -m pip install --upgrade pip - pip install poetry - - name: Install dependencies - run: poetry install - - name: Test Windows-Style Paths - run: poetry run task run_unittest_as_windows_sanity tests\test_windows_sanity.py -- cgit v1.2.3