From d692476f6ce97d07431b4c37160b0f2d5dfbaac1 Mon Sep 17 00:00:00 2001 From: Jim Garrison Date: Wed, 23 Feb 2022 09:05:08 -0500 Subject: [PATCH] Enable tests on Windows (#30) * Enable tests on Windows * Specify bash shell everywhere it specifically is required * Update .github/workflows/README.md --- .github/workflows/README.md | 2 +- .github/workflows/test_development_versions.yml | 1 + .github/workflows/test_latest_versions.yml | 3 +++ .github/workflows/test_minimum_versions.yml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 1c5ce6d..20a5293 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -8,7 +8,7 @@ This workflow checks that the code is formatted properly and follows the style g ## Latest version tests (`test_latest_versions.yml`) -This workflow installs the latest version of tox and runs [the current repository's tests](/tests/#test-py-environments) on each supported Python version. This is the primary testing workflow. It runs for all code changes and additionally once per day, to ensure tests continue to pass as new versions of dependencies are released. +This workflow installs the latest version of tox and runs [the current repository's tests](/tests/#test-py-environments) under each supported Python version on Linux and under a single Python version on macOS and Windows. This is the primary testing workflow. It runs for all code changes and additionally once per day, to ensure tests continue to pass as new versions of dependencies are released. ## Development version tests (`test_development_versions.yml`) diff --git a/.github/workflows/test_development_versions.yml b/.github/workflows/test_development_versions.yml index 291f9ce..c6a4277 100644 --- a/.github/workflows/test_development_versions.yml +++ b/.github/workflows/test_development_versions.yml @@ -26,6 +26,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Set up tox environment + shell: bash run: | pver=${{ matrix.python-version }} tox_env="-epy${pver/./}" diff --git a/.github/workflows/test_latest_versions.yml b/.github/workflows/test_latest_versions.yml index 70770c6..d9bb152 100644 --- a/.github/workflows/test_latest_versions.yml +++ b/.github/workflows/test_latest_versions.yml @@ -23,6 +23,8 @@ jobs: include: - os: macos-latest python-version: 3.7 + - os: windows-latest + python-version: 3.7 steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -30,6 +32,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Set up tox environment + shell: bash run: | pver=${{ matrix.python-version }} tox_env="-epy${pver/./}" diff --git a/.github/workflows/test_minimum_versions.yml b/.github/workflows/test_minimum_versions.yml index 9a7cdf1..a740f2a 100644 --- a/.github/workflows/test_minimum_versions.yml +++ b/.github/workflows/test_minimum_versions.yml @@ -24,6 +24,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Set up tox environment + shell: bash run: | pver=${{ matrix.python-version }} tox_env="-epy${pver/./}"