-
Notifications
You must be signed in to change notification settings - Fork 84
41 lines (38 loc) · 1007 Bytes
/
main.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
name: Tests and code quality checks
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
build:
name: Run tests and quality checks
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up pip and poetry
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 -
- name: Install AIrsenal
run: poetry install --extras "api"
- name: Code quality checks
run: |
poetry run isort --check-only .
poetry run black --check .
poetry run flake8
- name: Tests
env:
FPL_TEAM_ID: 1822891
run: poetry run pytest