-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (55 loc) · 1.45 KB
/
mopper-pytest.yaml
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
name: mopper-all-tests
#on: [push]
on:
push:
branches:
- prerelease
- main
pull_request:
branches:
- main
- prerelease
jobs:
build-linux:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
max-parallel: 5
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/[email protected]
- name: Set up Python 3.10/3.11
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install Miniconda
uses: conda-incubator/[email protected]
with:
activate-environment: testenv
environment-file: conda/testenv.yaml
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Lint with ruff
shell: bash -el {0}
run: |
ruff check --output-format=github .
continue-on-error: true
# making sure we are testing installed package
- name: Install package
shell: bash -el {0}
run: |
conda activate testenv
pip install -e .
- name: Test with pytest
shell: bash -el {0}
run: |
conda run python -m pytest
#conda run coverage run --source src -m py.test
# - name: Upload to codecov
# shell: bash -el {0}
# if: steps.build.outcome == 'success'
# run: |
# curl -Os https://uploader.codecov.io/latest/linux/codecov
# chmod +x codecov
# ./codecov