-
Notifications
You must be signed in to change notification settings - Fork 68
36 lines (34 loc) · 850 Bytes
/
ci.yml
File metadata and controls
36 lines (34 loc) · 850 Bytes
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
name: CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: 'pip'
- name: Install hatch
run: |
python -m pip install --upgrade pipx
pipx install hatch
- name: Run tests
run: hatch run run-coverage
env:
HATCH_ENV: "test"
- name: Build packages
run: hatch build -c -t sdist -t wheel
- name: "Upload packages"
uses: actions/upload-artifact@v4
with:
name: packages
path: ./dist/apache_airflow_client-*
retention-days: 7
if-no-files-found: error