forked from cehbrecht/duck
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (32 loc) · 951 Bytes
/
main.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
name: build ⚙️
on: [ push, pull_request ]
jobs:
conda:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- name: Setup conda with Python ${{ matrix.python-version }}
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: defaults, conda-forge
- name: Conda env configuration with mamba
run: |
conda install mamba
mamba env create -f environment.yml
source activate duck
pip install -e ".[dev]"
- name: Test with conda
run: |
source activate duck
pytest tests
continue-on-error: false
- name: Lint with flake8 ⚙️
run: |
source activate duck
flake8 duck
if: matrix.python-version == 3.10