Skip to content

Commit

Permalink
Merge pull request MyreMylar#414 from MyreMylar/update-tests-to-pygam…
Browse files Browse the repository at this point in the history
…e-ce

Update tests to pygame-ce
  • Loading branch information
MyreMylar committed Mar 9, 2023
2 parents 9ceb81e + c3ba66d commit 9cf5ffb
Showing 1 changed file with 12 additions and 52 deletions.
64 changes: 12 additions & 52 deletions .github/workflows/run_tests_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ name: Run Tests
on: [push]

jobs:
build-on-linux-old:
build-on-linux:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.7', '3.8', '3.9']
pygame-version: ['2.0.1', '2.1.0', '2.1.2']
python-version: ['3.8', '3.9', '3.10', '3.11']
pygame-ce-version: ['2.1.3', '2.1.4']
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
pygame-version: ${{ matrix.pygame-version }}
pygame-ce-version: ${{ matrix.pygame-ce-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -26,7 +26,7 @@ jobs:
python -m pip install pytest-benchmark
python -m pip install pytest-cov
python -m pip install codecov
python -m pip install -q pygame==${{ matrix.pygame-version }}
python -m pip install -q pygame-ce==${{ matrix.pygame-ce-version }}
python -m pip install . -U
sudo apt-get install xvfb
sudo apt-get install xclip
Expand All @@ -42,61 +42,21 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }} #required

build-on-linux-new:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [ '3.10', '3.11']
pygame-version: [ '2.1.3.dev8' ]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
pygame-version: ${{ matrix.pygame-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install stringify
python -m pip install python-i18n
python -m pip install pytest
python -m pip install pytest-benchmark
python -m pip install pytest-cov
python -m pip install codecov
python -m pip install -q pygame==${{ matrix.pygame-version }}
python -m pip install . -U
sudo apt-get install xvfb
sudo apt-get install xclip
sudo apt-get install xsel
- name: Test with pytest
env:
SDL_VIDEODRIVER: dummy
SDL_AUDIODRIVER: disk
run: |
xvfb-run pytest --cov-report=xml --cov=pygame_gui tests/
- name: Upload to Code Cov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} #required

build-on-windows:

runs-on: windows-latest
strategy:
max-parallel: 4
matrix:
python-version: [ '3.11' ]
pygame-version: [ '2.1.3.dev8' ]
pygame-ce-version: [ '2.1.4' ]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
pygame-version: ${{ matrix.pygame-version }}
pygame-ce-version: ${{ matrix.pygame-ce-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -106,7 +66,7 @@ jobs:
python -m pip install pytest-benchmark
python -m pip install pytest-cov
python -m pip install codecov
python -m pip install -q pygame==${{ matrix.pygame-version }}
python -m pip install -q pygame-ce==${{ matrix.pygame-ce-version }}
python -m pip install . -U
- name: Test with pytest
env:
Expand All @@ -125,15 +85,15 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [ '3.10' ]
pygame-version: [ '2.1.2' ]
python-version: [ '3.11' ]
pygame-ce-version: [ '2.1.4' ]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
pygame-version: ${{ matrix.pygame-version }}
pygame-ce-version: ${{ matrix.pygame-ce-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -143,7 +103,7 @@ jobs:
python -m pip install pytest-benchmark
python -m pip install pytest-cov
python -m pip install codecov
python -m pip install -q pygame==${{ matrix.pygame-version }}
python -m pip install -q pygame-ce==${{ matrix.pygame-ce-version }}
python -m pip install . -U
- name: Test with pytest
env:
Expand Down

0 comments on commit 9cf5ffb

Please sign in to comment.