forked from PaddleHQ/paddle-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 965 Bytes
/
testing.yml
File metadata and controls
41 lines (34 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Run Tests
on:
# release:
# types: [created]
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: "Package stability ${{ matrix.stability }}"
runs-on: ubuntu-latest
environment: dev
permissions:
contents: read
strategy:
matrix:
python-version: [ '3.11', '3.12', '3.13' ]
steps:
- name: Checkout repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5
with:
allow-prereleases: ${{ matrix.python-version == '3.13' }}
python-version: ${{ matrix.python-version }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ".[dev]"
- name: Run Python tests
run: pytest