Skip to content

Commit 0eec87c

Browse files
committed
update pytest workflow
1 parent 1d15b2a commit 0eec87c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/pytest.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,28 @@ name: Pytest for pca
22
on: [push]
33

44
jobs:
5-
example-1:
6-
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
5+
test:
6+
name: Pytest (${{ matrix.python-version }}, ${{ matrix.os }})
77
runs-on: ${{ matrix.os }}
88
strategy:
99
fail-fast: false
1010
matrix:
1111
os: ["ubuntu-latest"]
12-
python-version: ["3.8", "3.10"]
12+
python-version: ["3.12"]
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: conda-incubator/setup-miniconda@v2
14+
- uses: actions/checkout@v3
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v4
1617
with:
17-
auto-update-conda: true
1818
python-version: ${{ matrix.python-version }}
19+
cache: 'pip'
1920
- name: Install dependencies
2021
run: |
2122
python -m pip install --upgrade pip
22-
# install pandas because we have unittests that include pd.DataFrame()
23+
pip install -r requirements_additional.txt
2324
pip install -r requirements.txt
24-
pip install pandas
25-
pip install sklearn
25+
pip install pytest
26+
pip install .
2627
- name: Test with pytest
2728
run: |
28-
pip install pytest
2929
pytest
30-

requirements_additional.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pandas

0 commit comments

Comments
 (0)