Skip to content

Commit f23ee7b

Browse files
authored
Merge pull request #8 from dgoeries/Add-Package-CI
Create python-app.yml
2 parents 47319ca + 2d04d2d commit f23ee7b

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: downsample package
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
python-version: ["3.10", "3.11", "3.12"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install setuptools
28+
python -m pip install flake8 pytest
29+
- name: Build package
30+
run: |
31+
python -m pip install -e . -v
32+
- name: Test with pytest
33+
run: |
34+
pytest

0 commit comments

Comments
 (0)