-
Notifications
You must be signed in to change notification settings - Fork 7
30 lines (30 loc) · 976 Bytes
/
pull-test.yml
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
# Runs tests via tox
# Runs on pull requests to main
name: pulltest
on:
pull_request:
types: [ready_for_review, opened, reopened]
branches: [main, master, stable, "release/**", "releases/**"]
paths-ignore: ["**/*.md", "**/*.rst"]
jobs:
test:
name: "Test ${{ github.ref_type }}:${{ github.ref_name }} on ${{ matrix.os }}/py${{ matrix.python-version }}"
strategy:
max-parallel: 1
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.10"]
runs-on: "${{ matrix.os }}"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Install build meta-dependencies
run: |
pip install 'poetry>=1.2,<2' 'tox>=3,<4' 'wheel>=0.37,<1.0'
- name: Test with tox
run: |
tox -v