Skip to content

Commit 7f6ef01

Browse files
committed
Added a github workflow to test the package.
1 parent 300a47a commit 7f6ef01

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/test.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: test
2+
on:
3+
push:
4+
branches: master
5+
pull_request:
6+
branches: master
7+
# cancels prior builds for this workflow when new commit is pushed
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.13"]
17+
name: test
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Setup Conda environment
21+
uses: conda-incubator/setup-miniconda@v3
22+
with:
23+
auto-update-conda: true
24+
python-version: ${{ matrix.python-version }}
25+
channels: conda-forge
26+
environment-file: gait2d-dev.yml
27+
- name: run tests
28+
shell: bash -l {0}
29+
run: |
30+
conda info
31+
conda list
32+
python -c "import pygait2d"
33+
python -c "import algait2d"
34+
py.test pygait2d/
35+
- name: test installation
36+
shell: bash -l {0}
37+
run: |
38+
conda info
39+
python setup.py install
40+
conda list

0 commit comments

Comments
 (0)