-
Notifications
You must be signed in to change notification settings - Fork 60
63 lines (51 loc) · 1.48 KB
/
pandas-checks.yaml
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
59
60
61
62
63
name: pandas-checks
on:
schedule:
- cron: '0 0 1 * *'
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
config:
# - { os: ubuntu-latest, python-version: '3.9', pandas-version: '1.5.0' }
- { os: ubuntu-latest, python-version: '3.9', pandas-version: '2.2.0' }
- { os: ubuntu-latest, python-version: '3.9', pandas-version: 'latest' }
defaults:
run:
shell: bash
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.python-version }}) - pandas ${{ matrix.config.pandas-version }}
steps:
- name: Set up Python Version
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.config.python-version }}
- name: Check-out repository
uses: actions/checkout@v2
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install package
run: |
poetry install
if [ "${{ matrix.config.pandas-version }}" == "latest" ]; then
poetry add pandas@latest
else
poetry add pandas==${{ matrix.config.pandas-version }}
fi
- run: |
source $VENV
pytest --version
- name: Test with pytest
run: poetry run pytest tests/ --verbose