lfoppiano commited on
Commit
8d140dd
1 Parent(s): 6309968

build on multi version

Browse files
Files changed (1) hide show
  1. .github/workflows/ci-build.yml +22 -19
.github/workflows/ci-build.yml CHANGED
@@ -10,27 +10,30 @@ concurrency:
10
  jobs:
11
  build:
12
  runs-on: ubuntu-latest
 
 
 
13
 
14
  steps:
15
- - uses: actions/checkout@v2
16
- - name: Set up Python 3.9
17
- uses: actions/setup-python@v4
18
- with:
19
- python-version: "3.9"
20
- cache: 'pip'
21
- - name: Cleanup more disk space
22
- run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
23
- - name: Install dependencies
24
- run: |
25
- python -m pip install --upgrade pip
26
- pip install --upgrade flake8 pytest pycodestyle
27
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28
- - name: Lint with flake8
29
- run: |
30
- # stop the build if there are Python syntax errors or undefined names
31
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
32
- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
33
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
34
  # - name: Test with pytest
35
  # run: |
36
  # pytest
 
10
  jobs:
11
  build:
12
  runs-on: ubuntu-latest
13
+ strategy:
14
+ matrix:
15
+ python-version: [ 3.8, 3.9, '3.10', '3.11' ]
16
 
17
  steps:
18
+ - uses: actions/checkout@v2
19
+ - name: Set up Python ${{ matrix.python-version }}
20
+ uses: actions/setup-python@v4
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+ cache: 'pip'
24
+ - name: Cleanup more disk space
25
+ run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
26
+ - name: Install dependencies
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ pip install --upgrade flake8 pytest pycodestyle
30
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31
+ - name: Lint with flake8
32
+ run: |
33
+ # stop the build if there are Python syntax errors or undefined names
34
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37
  # - name: Test with pytest
38
  # run: |
39
  # pytest