2021-07-15 22:19:03 +02:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
2022-12-21 22:01:32 +01:00
|
|
|
# Sources of supported versions:
|
|
|
|
# * https://github.com/actions/python-versions/blob/main/versions-manifest.json
|
|
|
|
# * https://downloads.python.org/pypy/versions.json
|
2021-07-15 22:19:03 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.runs-on }}
|
2023-06-10 08:28:08 +02:00
|
|
|
timeout-minutes: 10
|
2021-07-15 22:19:03 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-12-21 21:55:35 +01:00
|
|
|
include:
|
2023-05-21 19:01:40 +02:00
|
|
|
- python-version: "3.12.0-alpha.7"
|
2022-12-21 22:01:32 +01:00
|
|
|
with-opt-deps: true
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
|
|
|
- python-version: "3.11"
|
2021-07-15 22:19:03 +02:00
|
|
|
with-opt-deps: true
|
2022-12-21 21:55:35 +01:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
|
|
|
- python-version: "3.10"
|
|
|
|
with-opt-deps: true
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
- python-version: "3.10"
|
|
|
|
with-opt-deps: false
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
|
|
|
- python-version: "3.9"
|
|
|
|
with-opt-deps: true
|
|
|
|
runs-on: ubuntu-22.04
|
2022-12-21 22:01:32 +01:00
|
|
|
- python-version: "pypy-3.9"
|
|
|
|
with-opt-deps: true
|
|
|
|
runs-on: ubuntu-22.04
|
2022-12-21 21:55:35 +01:00
|
|
|
|
|
|
|
- python-version: "3.8"
|
2021-07-15 22:19:03 +02:00
|
|
|
with-opt-deps: true
|
2022-12-21 21:55:35 +01:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
|
|
|
- python-version: "3.7"
|
|
|
|
with-opt-deps: true
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
- python-version: "3.7"
|
|
|
|
with-opt-deps: false
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
- python-version: "pypy-3.7"
|
|
|
|
with-opt-deps: false
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
|
|
|
- python-version: "3.6"
|
|
|
|
with-opt-deps: false
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
- python-version: "pypy-3.6"
|
|
|
|
with-opt-deps: false
|
|
|
|
runs-on: ubuntu-20.04
|
2021-07-15 22:19:03 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
- name: Upgrade pip
|
|
|
|
run: |
|
|
|
|
python3 -m pip install --upgrade pip
|
|
|
|
|
|
|
|
- name: Install optional dependencies
|
|
|
|
if: ${{ matrix.with-opt-deps }}
|
|
|
|
run: |
|
|
|
|
python3 -m pip install --upgrade pip
|
|
|
|
pip3 install -r requirements.txt
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: |
|
2021-07-15 22:29:56 +02:00
|
|
|
LIMNORIA_WARN_OLD_PYTHON=0 python3 setup.py install
|
2021-07-15 22:19:03 +02:00
|
|
|
|
|
|
|
- name: Test with unittest
|
|
|
|
run: |
|
|
|
|
supybot-test test -v --plugins-dir=./plugins/ --no-network
|
|
|
|
|
|
|
|
- name: Test with irctest
|
2023-09-24 19:55:44 +02:00
|
|
|
if: "${{ matrix.with-opt-deps && matrix.python-version != '3.7' && matrix.python-version != 'pypy-3.7' && matrix.python-version != 'pypy-3.9' }}"
|
2021-07-15 22:19:03 +02:00
|
|
|
run: |
|
2023-09-24 19:55:44 +02:00
|
|
|
git clone https://github.com/progval/irctest.git
|
2021-07-15 22:19:03 +02:00
|
|
|
cd irctest
|
|
|
|
pip3 install -r requirements.txt
|
2021-07-31 17:57:53 +02:00
|
|
|
make limnoria PYTEST_ARGS=-vs
|