diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 0000000..10ddf23 --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,45 @@ +name: Python CI + +on: + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run tests + run: python -m unittest discover -s tests/ + + build-27: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: LizardByte/setup-python-action@master + with: + python-version: '2.7' + + - name: Install dependencies for Python 2.7 + run: | + python2.7 -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run tests for Python 2.7 + run: python -m unittest discover -s tests/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 00e7f41..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: python -python: - - "2.7" - - "3.6" - - "3.7" - - "3.8" - - "3.9" -install: - - pip install -r requirements.txt -script: python -m unittest discover -s tests/