Skip to content

Commit

Permalink
Update testing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume authored Oct 22, 2024
1 parent c87d97c commit ed8cb0b
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"
cache: pip
cache-dependency-path: pyproject.toml

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[strict]
pip install .[tests]
pip install .[dev]
pip install .[tests,dev]
- name: Lint
run: |
Expand All @@ -34,12 +32,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11" ]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v4

- uses: actions/setup-python@v2.2.2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -53,15 +51,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[strict]
pip install .[tests]
- name: Test
run: |
pytest --cov=pyrho --cov-report=xml
- uses: codecov/codecov-action@v1
if: matrix.python-version == 3.8
if: matrix.python-version == 3.11
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
Expand All @@ -70,19 +67,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install pandoc
run: sudo apt-get install pandoc

- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[strict]
pip install -e .[docs]
- name: Build
run: sphinx-build docs/source _build
Expand Down

0 comments on commit ed8cb0b

Please sign in to comment.