Test on Python 3.12 #724
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | ||
on: [push, pull_request] | ||
jobs: | ||
tests: | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
include: | ||
- os: macos-latest | ||
python-version: "3.12" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install tox | ||
run: pip install tox | ||
- name: Run asyncio tests | ||
run: tox -e py | ||
- name: Run twisted tests | ||
run: tox -e py-twisted | ||
- name: Upload coverage report (Linux) | ||
if: runner.os == Linux | ||
Check failure on line 35 in .github/workflows/tests.yml
|
||
run: | | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
chmod +x codecov | ||
./codecov | ||
- name: Upload coverage report (macOS) | ||
if: runner.os == macOS | ||
run: | | ||
curl -Os https://uploader.codecov.io/latest/macos/codecov | ||
chmod +x codecov | ||
./codecov |