Skip to content

Commit

Permalink
python-capdl-tool: Update python3 test scripts
Browse files Browse the repository at this point in the history
.github action runners can just run tests with python3 only now.

Signed-off-by: Kent McLeod <kent@kry10.com>
  • Loading branch information
kent-mcleod committed Sep 1, 2023
1 parent e082ee7 commit b195c2b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '2.x', '3.9' ]
python-version: [ '3.x' ]
fail-fast: false
steps:
- uses: actions/checkout@v2
Expand All @@ -41,12 +41,11 @@ jobs:
- name: Install python packages
run: |
cd python-capdl-tool
pip install -r requirements.txt
pip install nose future
pip3 install -r requirements.txt
- name: Run tests
run: |
cd python-capdl-tool/tests
nosetests --exe
PYTHONPATH=../ ./runall.py
capDL-tool:
name: capDL-tool (ghc)
Expand Down
4 changes: 2 additions & 2 deletions python-capdl-tool/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
#
Expand All @@ -11,4 +11,4 @@ six
sortedcontainers
concurrencytest
hypothesis
nose
future
2 changes: 1 addition & 1 deletion python-capdl-tool/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
#
Expand Down
2 changes: 1 addition & 1 deletion python-capdl-tool/tests/allocator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
#
Expand Down
2 changes: 1 addition & 1 deletion python-capdl-tool/tests/runall.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
Expand Down
2 changes: 1 addition & 1 deletion python-capdl-tool/tests/testelf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
#
Expand Down
2 changes: 1 addition & 1 deletion python-capdl-tool/tests/testmerge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
#
Expand Down

0 comments on commit b195c2b

Please sign in to comment.