Skip to content

Commit

Permalink
Merge with master
Browse files Browse the repository at this point in the history
  • Loading branch information
pronovic committed Sep 2, 2022
2 parents a8ba3b1 + f67c710 commit 428defe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.10" ]
#os: [ubuntu-latest, macos-latest, windows-latest]
#python: ["3.7", "3.8", "3.9", "3.10" ]
python: ["3.7", "3.8", "3.9", "3.10" ]
runs-on: ${{ matrix.os }}
env:
# Run builds using a specific version of Poetry, to avoid surprises
Expand All @@ -32,8 +30,7 @@ jobs:
python-version: ${{ matrix.python }}
- name: Platform information
run: |
python -c "import sys;print('Python %s' % sys.version)"
python -c "import platform;print('Platform\n%s' % '\n'.join([ ' %s: %s' % i for i in zip(['system','node','release','version','machine','processor'], platform.uname()) if i[1] ]))"
python utils/showplatform.py
- name: Install Poetry
uses: snok/install-poetry@v1.2.1 # see https://github.com/snok/install-poetry
with:
Expand Down
9 changes: 9 additions & 0 deletions utils/showplatform.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env python3
# Display information about the current platform

import platform
import sys

fields = [" %s: %s" % i for i in zip(["system", "node", "release", "version", "machine", "processor"], platform.uname()) if i[1]]
print("Python %s" % sys.version)
print("Platform\n%s" % "\n".join(fields))

0 comments on commit 428defe

Please sign in to comment.