-
Notifications
You must be signed in to change notification settings - Fork 11
64 lines (55 loc) · 1.46 KB
/
github_action_tests.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
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test
on:
push:
branches: [main, next, version_issues]
pull_request:
branches: [main, next, version_issues]
jobs:
pre-commit:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -e {0} # -e to fail on error
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-11]
# python: ["3.9", "3.10"]
env:
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
with:
extra_args: --files ../../src/multivelo/auxiliary.py \
../../src/multivelo/dynamical_chrom_func.py \
../../src/multivelo/steady_chrom_func.py \
../../src/multivelo/mv_logging.py \
../../src/multivelo/settings.py \
--verbose
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -e {0} # -e to fail on error
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-11]
python: ["3.9", "3.10"]
env:
OS: ${{ matrix.os }}
steps:
# Check
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python }}"
- name: Install requirements
run: |
pip3 install -r requirements.txt
- name: Test with pytest
run: |
pip3 install -e .
pytest