-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (39 loc) · 1.01 KB
/
build.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
name: build
on:
# [push]
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-packages:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v2
- name: Setup miniconda with python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: compas_slicer
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
auto-update-conda: true
- name: Conda info
run: conda info
- name: Install project
run: |
python -m pip install --no-cache-dir -r requirements-dev.txt
- name: Test import
run: |
python -c "import compas_slicer; print('COMPAS Slicer version: ' + compas_slicer.__version__)"
- name: Lint with flake8
run: |
invoke lint
- name: Test with pytest
run: |
invoke test