File tree Expand file tree Collapse file tree 1 file changed +47
-7
lines changed Expand file tree Collapse file tree 1 file changed +47
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Python Package using Conda
2
2
3
- on : [push]
3
+ on :
4
+ push:
5
+ branches:
6
+ -main
7
+ -release/*
8
+ on :
9
+ pull_request :
10
+ branches :
11
+ - main
12
+ on :
13
+ schedule :
14
+ - cron : " 0 2 * * 1-5"
4
15
5
- jobs :
6
- build-linux :
7
- runs-on : ubuntu-latest
8
- strategy :
16
+ on :
17
+ workflow_dispatch :
18
+
19
+ jobs :
20
+ my_job :
21
+ name : deploy to staging
22
+ runs-on : ubuntu-22.04
9
23
max-parallel : 5
10
24
25
+ - name : Setup Node
26
+ uses : actions/setup-node@v4
27
+ with :
28
+ node-version : ' 20.x'
29
+
11
30
steps :
12
31
- uses : actions/checkout@v4
13
32
- name : Set up Python 3.10
19
38
# $CONDA is an environment variable pointing to the root of the miniconda directory
20
39
echo $CONDA/bin >> $GITHUB_PATH
21
40
- name : Install dependencies
22
- run : |
41
+ run : npm install
23
42
conda env update --file environment.yml --name base
24
43
- name : Lint with flake8
25
44
run : |
30
49
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31
50
- name : Test with pytest
32
51
run : |
33
- conda install pytest
52
+ conda install pjobs:
53
+ test :
54
+ name : Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
55
+ runs-on : ${{ matrix.os }}
56
+ strategy :
57
+ matrix :
58
+ node_version : ['18.x', '20.x']
59
+ os : [ubuntu-latest, windows-latest, macOS-latest]
60
+
61
+ steps :
62
+ - uses : actions/checkout@v4
63
+ - name : Use Node.js ${{ matrix.node_version }}
64
+ uses : actions/setup-node@v4
65
+ with :
66
+ node-version : ${{ matrix.node_version }}
67
+
68
+ - name : npm install, build and test
69
+ run : |
70
+ npm install
71
+ npm run build --if-present
72
+ npm testytest
34
73
pytest
74
+
You can’t perform that action at this time.
0 commit comments