Skip to content

Commit

Permalink
Remove Python 3.6 and add Python 3.10 in the github workflow (#1368)
Browse files Browse the repository at this point in the history
* Remove Python 3.6 and add Python 3.10 in the github workflow

* Get latest pyfakefs package

* Test only python 3.10

* Use pyfakefs==4.5.6

* Use new method

* Bring back all Python versions

* Remove Python 3.7

Co-authored-by: Mario Ruiz <mruiznog@xilinx.com>
  • Loading branch information
mariodruiz and Mario Ruiz committed Sep 21, 2022
1 parent ebf231d commit 25d0ba8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ['3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v2
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pyfakefs==4.4.0 pytest-cov pytest-asyncio codecov
pip install flake8 pytest pyfakefs==4.5.6 pytest-cov pytest-asyncio codecov
# Install required dependencies for pynq since we import it in setup.py
pip install numpy cffi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
Expand Down
2 changes: 1 addition & 1 deletion tests/test_devicetree.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _add_dtbo(self, fd):
dtbo_dir = os.path.dirname(fd.path)
if self._fail:
print('Resetting contents')
fd._set_initial_contents('')
fd.set_initial_contents('')
with open(os.path.join(dtbo_dir, 'status'), 'w') as f:
f.write('applied\n')

Expand Down

0 comments on commit 25d0ba8

Please sign in to comment.