Skip to content

Commit dd80f27

Browse files
Merge pull request #4 from eevanlai-stack/eevanlai-stack-patch-1
Update python-package-conda.yml
2 parents 94e30b3 + 9b54557 commit dd80f27

File tree

1 file changed

+47
-7
lines changed

1 file changed

+47
-7
lines changed
Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
11
name: Python Package using Conda
22

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"
415

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
923
max-parallel: 5
1024

25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: '20.x'
29+
1130
steps:
1231
- uses: actions/checkout@v4
1332
- name: Set up Python 3.10
@@ -19,7 +38,7 @@ jobs:
1938
# $CONDA is an environment variable pointing to the root of the miniconda directory
2039
echo $CONDA/bin >> $GITHUB_PATH
2140
- name: Install dependencies
22-
run: |
41+
run: npm install
2342
conda env update --file environment.yml --name base
2443
- name: Lint with flake8
2544
run: |
@@ -30,5 +49,26 @@ jobs:
3049
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3150
- name: Test with pytest
3251
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
3473
pytest
74+

0 commit comments

Comments
 (0)