-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (44 loc) · 1.22 KB
/
test_pipeline.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
name: Test pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest # arm64 (Apple Silicon)
- macos-13 # latest Intel release
- windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Force numpy < 2 on MacOS Intel
if: matrix.os == 'macos-13'
run: pip install 'numpy<2'
- name: Install Pylossless & Deps
run: pip install -e .
- name: Test import
run: |
python -c "import pylossless"
- name: Install testing dependencies
run: pip install -r requirements_testing.txt
- name: Install QC depedencies
run: pip install -r requirements_qc.txt
- name: Test Pipeline
run: |
coverage run -m pytest
- name: Upload coverage to codecov (Only do this for the ubuntu-latest job)
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}