-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (55 loc) · 1.67 KB
/
conda_test.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
48
49
50
51
52
53
54
55
56
57
58
name: Run tests with miniconda
on: [push]
jobs:
test:
name: Miniconda ${{ matrix.os }} Py${{ matrix.pyver }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
pyver: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
# environment-file: environment.yml
python-version: ${{ matrix.pyver }}
auto-activate-base: false
- shell: bash -l {0}
run: |
conda config --add channels conda-forge
conda config --set channel_priority strict
# conda info
# conda list
- name: Build
shell: bash -l {0}
run: |
conda list
conda install python=${{ matrix.pyver }} --file conda_requirements.txt --file conda_requirements_dev.txt
pip install .
- name: Test
shell: bash -l {0}
run: |
pytest --pyargs py_gd
lint:
name: Flake8 linting
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: lint
python-version: ${{ matrix.pyver }}
auto-activate-base: false
- shell: bash -l {0}
run: |
conda config --add channels conda-forge
conda config --set channel_priority strict
- name: Lint
shell: bash -l {0}
run: |
conda install flake8
# flake8 config in setup.cfg
python -m flake8 --statistics py_gd/