forked from BDNYC/sedkit
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.14 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
pull_request:
branches: [ master ]
workflow_dispatch: # allows manual execution
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
os: ["macos-latest"]
python-version: ["3.10"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of the git history
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: sedkit-${{ matrix.python-version }}
environment-file: env/environment-${{ matrix.python-version }}.yml
python-version: ${{ matrix.python-version }}
miniforge-version: latest
auto-activate-base: false
- name: Display Conda environment
run: |
conda info
conda env list
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Test with pytest
run: |
pip install pytest
pytest -s