forked from ibis-project/ibis
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (64 loc) · 2.03 KB
/
check-generated-files.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Check Generated Files
on:
push:
paths:
- README.md
- uv.lock
- pyproject.toml
- requirements-dev.txt
pull_request:
paths:
- README.md
- uv.lock
- pyproject.toml
- requirements-dev.txt
concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
env:
FORCE_COLOR: "1"
SQLALCHEMY_WARN_20: "1"
HYPOTHESIS_PROFILE: "ci"
permissions:
# this allows extractions/setup-just to list releases for `just` at a higher
# rate limit while restricting GITHUB_TOKEN permissions elsewhere
contents: read
jobs:
check_setuptools_install:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install python
uses: actions/setup-python@v5
id: install_python
with:
python-version: "3.12"
cache: pip
cache-dependency-path: requirements-dev.txt
- name: install uv
uses: astral-sh/setup-uv@v3.2.3
with:
enable-cache: true
- name: update apt-get
run: sudo apt-get update -y -q
- name: install system dependencies
run: sudo apt-get install -y -q build-essential graphviz libgeos-dev freetds-dev unixodbc-dev
- uses: extractions/setup-just@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: generate requirements-dev.txt
run: just export-deps
- name: check requirements-dev.txt
run: git diff --exit-code requirements-dev.txt
- name: install using requirements-dev.txt
run: pip install -r requirements-dev.txt
- name: run tests
run: pytest -m core -n auto --cov-report=xml:coverage.xml --cov=ibis
- name: upload code coverage
if: success()
continue-on-error: true
uses: codecov/codecov-action@v5
with:
flags: core,${{ runner.os }},python-${{ steps.install_python.outputs.python-version }}
token: ${{ secrets.CODECOV_TOKEN }}