Skip to content

Commit

Permalink
Windows CI x 2.
Browse files Browse the repository at this point in the history
This commit is the next (and hopefully but probably not last) in a
commit chain enabling continuous integration (CI) testing on both the
latest Long Term Service (LTS) release of Ubuntu Linux *and* Microsoft
Windows. In theory, this resolves #21. (*Volitional munitions!*)
  • Loading branch information
leycec committed Feb 9, 2021
1 parent 8d91406 commit 46cd0b3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/python_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ name: test
# reducing consumption of scarce CI minutes for incidental feature branches.
on:
push:
branches: [ main ]
branches:
- main
pull_request:
branches: [ main ]
branches:
- main

# ....................{ MAIN }....................
jobs:
Expand Down Expand Up @@ -151,17 +153,17 @@ jobs:

# Note that:
#
# * "set -xe" enables Bash:
# * Reporting (i.e., "-x"), which implicitly prints each command to
# stdout *BEFORE* running that command.
# * Strictness (i.e., "-e").
# * This command *MUST* be platform-agnostic by running under both:
# * POSIX-compliant platforms (e.g., Linux, macOS).
# * POSIX-noncompliant platforms (e.g., Windows).
# In particular, commands that assume a POSIX-compliant shell (e.g.,
# Bash) *MUST* be avoided.
# * Packaging dependencies (e.g., "pip") are upgraded *BEFORE* all
# remaining dependencies (e.g., "tox").
- name: 'Upgrading packager dependencies...'
run: python -m pip install --upgrade pip #setuptools wheel
- name: 'Installing package dependencies...'
run: |
set -xe
python -m pip install --upgrade pip #setuptools wheel
python -m pip install --upgrade tox #tox-gh-actions #virtualenv
run: python -m pip install --upgrade tox #tox-gh-actions #virtualenv

# Note that:
#
Expand All @@ -171,5 +173,4 @@ jobs:
# unavailable Python environments. See also:
# https://github.com/tox-dev/tox/issues/903
- name: 'Testing package with "tox"...'
run: |
python -m tox --skip-missing-interpreters=false
run: python -m tox --skip-missing-interpreters=false

0 comments on commit 46cd0b3

Please sign in to comment.