-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (47 loc) · 1.24 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
48
49
50
51
52
name: ci-wellies
# Controls when the workflow will run
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
jobs:
qa:
name: qa
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: pip install flake8 isort[pyproject]
- run: isort --check .
- run: flake8 .
setup:
name: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: python -m pip install .
test:
name: pytest
env:
GIT_PYTHON_TRACE: 1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-name: wellies-test
environment-file: environment.yml
- name: Install wellies and run tests
shell: bash -l {0} # required to load conda environment
run: |
git config --global user.email "[email protected]"
git config --global user.name "Dummy User"
python -m pip install .[test]
pytest .