Skip to content

Commit

Permalink
Test Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
rparini committed Jul 16, 2023
1 parent 77e740a commit 83fb26d
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.11"
- run: pip install -r requirements_analysis.txt
- run: black --check .

Expand All @@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.11"
- run: pip install -r requirements_analysis.txt
- run: isort --check .

Expand All @@ -32,7 +32,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.11"
- run: pip install -r requirements_analysis.txt
- run: flake8 --statistics

Expand All @@ -43,7 +43,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.11"
- run: pip install -r requirements.txt
- run: pyright cxroots

Expand All @@ -52,29 +52,30 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: pytest --cov=cxroots --cov-report=lcov -v -n 2 --durations=10 -m 'not slow' -x -W error
timeout-minutes: 20
- name: Coveralls
uses: coverallsapp/github-action@master
if: matrix.python-version == 3.10
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: pytest --cov=cxroots --cov-report=lcov -v -n 2 --durations=10 -m 'not slow' -x -W error
timeout-minutes: 20
- name: Coveralls
uses: coverallsapp/github-action@master
if: matrix.python-version == 3.11
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov

test-docs:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 83fb26d

Please sign in to comment.