Skip to content

Commit 13d41d2

Browse files
authored
new workflow testing compilation in a Conda env on Linux
1 parent 7ed61eb commit 13d41d2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/conda.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: conda
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.7", "3.8", "3.9"]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
submodules: recursive
20+
fetch-depth: 0 # https://github.com/pypa/setuptools_scm/issues/480
21+
- uses: conda-incubator/setup-miniconda@v2
22+
with:
23+
auto-update-conda: true
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies with pip in conda
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install pytest
29+
- name: Install PyPartMC
30+
run: |
31+
pip install -e .
32+
- name: Test with pytest
33+
run: |
34+
cd tests
35+
pytest -v -s -We -p no:unraisableexception .

0 commit comments

Comments
 (0)