Skip to content

Commit ff03e03

Browse files
Merge pull request #193 from petrobras/other_improvements
Other improvements
2 parents 9fa040a + aefe99b commit ff03e03

7 files changed

Lines changed: 206 additions & 59 deletions

File tree

.github/workflows/tests.yml

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,51 @@
11
name: Tests and Coverage
22

3-
on: [push, pull_request]
4-
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
58
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
filter: blob:none
17+
sparse-checkout: |
18+
/*
19+
!**/*.parquet
20+
sparse-checkout-cone-mode: false
21+
22+
- name: Setup Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.12"
26+
27+
- name: Set up uv
28+
uses: astral-sh/setup-uv@v4
29+
with:
30+
enable-caching: true
31+
32+
- name: Make helper scripts executable
33+
run: chmod +x bin/lint
34+
35+
- name: Create venv
36+
run: uv venv .venv
37+
38+
- name: Install package with dev extras
39+
run: uv pip install -e .[dev]
40+
41+
- name: Install lychee
42+
uses: lycheeverse/lychee-action@v2
43+
with:
44+
args: --version
45+
46+
- name: Run lint
47+
run: uv run ./bin/lint
48+
649
test:
750
runs-on: ubuntu-latest
851

@@ -36,7 +79,7 @@ jobs:
3679
uv --version
3780
3881
- name: Make helper scripts executable
39-
run: chmod +x bin/lint bin/test
82+
run: chmod +x bin/test
4083

4184
- name: Create venv
4285
run: uv venv .venv

0 commit comments

Comments
 (0)