-
Notifications
You must be signed in to change notification settings - Fork 96
66 lines (53 loc) · 1.98 KB
/
conda.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
65
66
name: ssqueezepy CI
on:
workflow_dispatch:
pull_request:
paths:
- "ssqueezepy/*"
- "tests/*"
- ".github/workflows/*"
- ".coveragerc"
- "requirements.txt"
- "requirements-dev.txt"
push:
branches:
- master
jobs:
build-conda:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v3
- name: Add Conda to path
run: echo $CONDA >> $GITHUB_PATH
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true
environment-file: environment.yaml
extra-specs: |
python=${{ matrix.python-version }}
- name: additional setup
shell: bash -l {0}
run: |
conda run python3 -m pip install --upgrade pip
conda run python3 -m pip install -r requirements.txt
conda run python3 -m pip install -r requirements-dev.txt
- name: Set up ssqueezepy
run: conda run pip install -e
- name: Test
shell: bash -l {0}
run: >
conda run pycodestyle --max-line-length=85
--ignore=E221,E241,E225,E226,E402,E722,E741,E272,E266,E302,E731,E702,E201,E129,E203,E202,W503,W504
ssqueezepy
conda run pytest tests/ -s --cov=ssqueezepy --cov-report=xml
- name: codecov upload coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./