diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 72210ed2..6ced8545 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,8 +8,11 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest] - python-version: ["3.8", "3.9", "3.10", "3.11"] + 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 @@ -28,12 +31,16 @@ jobs: - name: Run twisted tests run: tox -e py-twisted - - name: Upload coverage report + - name: Upload coverage report (Linux) + if: runner.os == 'Linux' run: | - if [ "${{ runner.os }}" = "Linux" ]; then - curl -Os https://uploader.codecov.io/latest/linux/codecov - else - curl -Os https://uploader.codecov.io/latest/macos/codecov - fi + 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 diff --git a/setup.py b/setup.py index 47f69881..47a3c0ea 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Framework :: Scrapy", "Intended Audience :: Developers", "Topic :: Internet :: WWW/HTTP",