graphene/.github/workflows/tests.yml

54 lines
1.5 KiB
YAML
Raw Normal View History

2021-08-19 09:33:27 +03:00
name: 📄 Tests
on:
push:
branches:
- master
- '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
pull_request:
branches:
- master
- '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
jobs:
tests:
# runs the test suite
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
2024-06-28 16:03:34 +03:00
- {name: '3.13', python: '3.13-dev', os: ubuntu-latest, tox: py313}
- {name: '3.12', python: '3.12', os: ubuntu-latest, tox: py312}
- {name: '3.11', python: '3.11', os: ubuntu-latest, tox: py311}
- {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310}
- {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39}
- {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38}
2021-08-19 09:33:27 +03:00
steps:
2024-05-16 11:09:19 +03:00
- uses: actions/checkout@v4
2024-07-05 18:26:49 +03:00
- name: Install poetry
run: pipx install poetry
2024-05-16 11:09:19 +03:00
- uses: actions/setup-python@v5
2021-08-19 09:33:27 +03:00
with:
python-version: ${{ matrix.python }}
2024-07-05 18:23:50 +03:00
cache: 'poetry'
2024-07-05 18:29:24 +03:00
- run: poetry install
2024-07-05 18:23:50 +03:00
- run: poetry run tox -e ${{ matrix.tox }}
2022-06-27 17:30:01 +03:00
- name: Upload coverage.xml
if: ${{ matrix.python == '3.10' }}
uses: actions/upload-artifact@v3
with:
name: graphene-coverage
2022-06-27 17:30:01 +03:00
path: coverage.xml
if-no-files-found: error
- name: Upload coverage.xml to codecov
if: ${{ matrix.python == '3.10' }}
uses: codecov/codecov-action@v3