Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Oct 10, 2024
1 parent 00a41ad commit 0de534d
Showing 1 changed file with 29 additions and 10 deletions.
39 changes: 29 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,45 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.7", "pypy3.8", "pypy3.9", "pypy3.10"]
exclude:
- os: ubuntu-latest
python-version: "pypy3.7"
- os: macos-latest
python-version: "pypy3.7"

python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.7", "pypy3.8", "pypy3.9", "pypy3.10"]
steps:
- uses: actions/checkout@v4
- name: Setup PDM and Python ${{ matrix.python-version }}
- name: Setup Python 3.13
uses: actions/setup-python@v5
if: matrix.os != 'windows-latest'
with:
python-version: 3.13
- name: Install uv and pdm
if: matrix.os != 'windows-latest'
run: |
pip install uv --disable-pip-version-check
uv tool install pdm
- name: Setup Python ${{ matrix.python-version }}
if: matrix.os != 'windows-latest'
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Create venv
if: matrix.os != 'windows-latest'
run: |
uv v -p ${{ matrix.python-version }}
- name: Setup PDM with Python ${{ matrix.python-version }}
uses: pdm-project/setup-pdm@v4
if: matrix.os == 'windows-latest'
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
if: matrix.os != 'windows-latest'
run: |
npm i -g pyright
pdm install --group playground --quiet
pdm export --pyproject | uv pip install -r - .[playground]
- name: Install dependencies
if: matrix.os == 'windows-latest'
run: |
pdm install
- name: Run tests
run: |
pdm test
- name: Run static type checking
run: |
npm i -g pyright
pdm run pyright ./src/

0 comments on commit 0de534d

Please sign in to comment.