Skip to content

Commit

Permalink
Merge pull request #134 from netromdk/update-actions
Browse files Browse the repository at this point in the history
[actions] Don't test using EOL Python 3.6
  • Loading branch information
netromdk committed Dec 20, 2022
2 parents cb06bbb + e7de7f7 commit 16eebd0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
# Start Linux jobs last since they are fastest to start and complete, and start 3.11 first,
# since it pairs wiht macOS+Windows jobs.
python-version: ['3.11', '3.10', 3.6, 3.7, 3.8, 3.9, 2.7]
python-version: ['3.11', '3.10', 3.7, 3.8, 3.9, 2.7]
os: [windows-latest, macos-latest, ubuntu-latest]

# Choose test script depending on OS.
Expand All @@ -31,8 +31,6 @@ jobs:
exclude:
- os: macos-latest
python-version: 2.7
- os: macos-latest
python-version: 3.6
- os: macos-latest
python-version: 3.7
- os: macos-latest
Expand All @@ -43,8 +41,6 @@ jobs:
python-version: '3.10'
- os: windows-latest
python-version: 2.7
- os: windows-latest
python-version: 3.6
- os: windows-latest
python-version: 3.7
- os: windows-latest
Expand Down
2 changes: 1 addition & 1 deletion misc/actions/test.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$PYTHON_VERSION = python -c "import sys;v=sys.version_info;print('{}.{}'.format(v[0],v[1]))"

if ( $PYTHON_VERSION -eq "2.7" -or $PYTHON_VERSION -eq "3.4" -or $PYTHON_VERSION -eq "3.5" ) {
if ( $PYTHON_VERSION -eq "2.7" -or $PYTHON_VERSION -eq "3.4" -or $PYTHON_VERSION -eq "3.5" -or $PYTHON_VERSION -eq "3.6") {
make test
}
else {
Expand Down
6 changes: 5 additions & 1 deletion misc/actions/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ set -x

PYTHON_VERSION=$(python -c "import sys;v=sys.version_info;print('{}.{}'.format(v[0],v[1]))")

if [[ $PYTHON_VERSION = 2.7 || $PYTHON_VERSION = 3.4 || $PYTHON_VERSION = 3.5 ]]; then
if [[ $PYTHON_VERSION = 2.7 ||
$PYTHON_VERSION = 3.4 ||
$PYTHON_VERSION = 3.5 ||
$PYTHON_VERSION = 3.6 ]];
then
make test
else
setup() {
Expand Down

0 comments on commit 16eebd0

Please sign in to comment.