-
Notifications
You must be signed in to change notification settings - Fork 79
51 lines (45 loc) · 1.42 KB
/
test-pypi-wheels.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
42
43
44
45
46
47
48
49
50
51
name: Daily Run Tests on PyPI Wheels
on:
workflow_dispatch:
schedule:
- cron: '0 16 * * *' # Trigger at 4PM every day
jobs:
run_unit_tests:
runs-on: ${{ matrix.os }}
env:
SENTRY_OPT_OUT: True
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04] # windows-2022 macos-13
python: ['3.7', '3.8', '3.9','3.10']
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
python -m pip install --upgrade pip
pip install fastdup pytest pytest-md pytest-emoji datasets
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov datasets fastdup
pip install opencv-python-headless
pip install fastdup --no-deps -U
- name: Run pytest
uses: pavelzw/pytest-action@v2
with:
verbose: true
emoji: true
job-summary: true
custom-arguments: '-q'
click-to-expand: true
report-title: 'Test Report'