Skip to content

Commit 067bb67

Browse files
authored
Update ci.yml
1 parent 412cb5b commit 067bb67

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,22 @@ jobs:
1515
with:
1616
python-version: 3.8
1717

18-
- name: Setup conda
19-
uses: s-weigand/setup-conda@v1
18+
- name: Setup Conda
19+
uses: conda-incubator/setup-miniconda@v3
2020
with:
21-
update-conda: true
22-
python-version: 3.8
23-
conda-channels: anaconda, conda-forge
21+
channels: conda-forge, defaults
22+
activate-environment: ""
2423

2524
- name: Install Python dependencies
2625
run: |
27-
conda install --yes pythonocc-core=7.4.0 numpy scipy matplotlib pytest pytest-cov vtk
28-
git clone https://github.com/mathLab/Smithers
29-
cd Smithers
30-
python setup.py install
31-
cd ..
26+
conda create -n occ python=${{ matrix.python-version }} pythonocc-core
27+
conda info
28+
conda activate occ
29+
conda info
30+
python -m pip install --upgrade pip
31+
python -m pip install smithers[vtk]
32+
python -m pip install .[test]
33+
python -c 'import OCC'
3234
3335
- name: Test with pytest
3436
env:
@@ -40,8 +42,3 @@ jobs:
4042
chmod +x CodacyCoverageReporter.sh
4143
./CodacyCoverageReporter.sh report -r cobertura.xml -t $CODACY_API_TOKEN
4244
43-
44-
- name: Test with pytest
45-
run: |
46-
python -m pytest tests
47-

0 commit comments

Comments
 (0)