Skip to content

Commit

Permalink
Merge pull request #345 from MyreMylar/update-to-3-11
Browse files Browse the repository at this point in the history
Upgrade tests to use latest pygame
  • Loading branch information
MyreMylar authored Oct 30, 2022
2 parents ff02308 + 78e9445 commit 98d4b9d
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions .github/workflows/run_tests_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run Tests
on: [push]

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

runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -42,14 +42,54 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }} #required

build-on-linux-new:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [ '3.10']
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.10' ]
pygame-version: [ '2.1.2' ]
pygame-version: [ '2.1.3.dev8' ]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
Expand Down

0 comments on commit 98d4b9d

Please sign in to comment.