-
Notifications
You must be signed in to change notification settings - Fork 13
35 lines (32 loc) · 961 Bytes
/
python-app.yml
File metadata and controls
35 lines (32 loc) · 961 Bytes
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
name: MINE-Database
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Add conda to system path
run: |
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies and create base conda environment
run: |
python -m pip install --upgrade pip
pip install flake8 tox black flake8-bugbear flake8-docstrings isort tox
conda env update --file environment.yml --name base
conda install pytest pytest-cov
conda develop ../MINE-Database
- name: Run tox to determine formatting and safety
if: always()
run: |
tox
- name: Test with pytest
if: always()
run: |
pytest