Skip to content

Commit 2d5744b

Browse files
Add CI workflow configuration for testing with Python 3.12 using Miniconda
1 parent 8b24265 commit 2d5744b

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
strategy:
16+
matrix:
17+
python-version: ["3.12"]
18+
defaults:
19+
run:
20+
shell: bash -l {0}
21+
name: Linux py ${{ matrix.python-version }} tests
22+
23+
steps:
24+
- uses: actions/checkout@v6
25+
- name: Set up Miniconda (${{ matrix.python-version }})
26+
uses: conda-incubator/setup-miniconda@v3
27+
with:
28+
auto-update-conda: true
29+
python-version: ${{ matrix.python-version }}
30+
activate-environment: pdmodels
31+
channels: conda-forge,bioconda,defaults,nvidia,schrodinger
32+
use-mamba: true
33+
- name: Set environment
34+
run: |
35+
bash setup.sh
36+
37+
- name: Check style
38+
run: |
39+
pre-commit run --all-files

0 commit comments

Comments
 (0)