-
Notifications
You must be signed in to change notification settings - Fork 601
executable file
·41 lines (33 loc) · 1.07 KB
/
push.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
31
32
33
34
35
36
37
38
39
40
41
name: Test Run on Push
on: [push]
jobs:
build:
name: ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# TODO: Add 3.7 to python-versions after GitHub action regression is resolved.
# https://github.com/actions/setup-python/issues/682
python-version: ['3.8', '3.9', '3.10']
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: macos-latest
runner: macos-latest@arm64
- os: ubuntu-latest
runner: ubuntu-latest
- os: windows-latest
runner: windows-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Test with pytest
run: |
pytest tests