-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.1 KB
/
python-app.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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Folio Airflow CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
PYTHONPATH: /Users/Shared/folio_migration_tools
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install airflow dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
flake8 --ignore=E501,W503
- name: Install support repos
run: |
git clone https://github.com/FOLIO-FSE/folio_migration_tools.git /Users/Shared/folio_migration_tools --depth=2
- name: Test with pytest
run: |
coverage run -m pytest
coverage lcov
coveralls --service=github