Skip to content

Commit

Permalink
update github workflow with python3.11, black 22.10.0, enable pip cac…
Browse files Browse the repository at this point in the history
…hing

update github action versions
  • Loading branch information
chrisnc committed Nov 19, 2022
1 parent 5c0443e commit 533947a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Linux Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -qq
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
name: macOS Test
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies
run: |
brew install -q scons
Expand All @@ -55,7 +55,7 @@ jobs:
name: Windows Test
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install -qq scons
Expand All @@ -70,18 +70,19 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-12, windows-2022]
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements-ci.txt'
- name: Install dependencies
run: |
python -m pip install -qq --upgrade pip
python -m pip install -qq flake8 pytest wheel
python -m pip install -qq -r requirements-ci.txt
- name: Lint with flake8
run: |
# The GitHub editor is 127 chars wide
Expand All @@ -95,17 +96,18 @@ jobs:
black-check:
name: Python Formatting
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'requirements-black.txt'
- name: Install dependencies
run: |
python -m pip install -qq --upgrade pip
python -m pip install -qq black==22.3.0
python -m pip install -qq -r requirements-black.txt
- name: Format with black
run: |
bash black-check.bash
1 change: 1 addition & 0 deletions requirements-black.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
black==22.10.0
3 changes: 3 additions & 0 deletions requirements-ci.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
flake8
pytest
wheel

0 comments on commit 533947a

Please sign in to comment.