-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (31 loc) 路 1.23 KB
/
Copy pathci.yml
File metadata and controls
36 lines (31 loc) 路 1.23 KB
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
# Build and load checks. Everything that needs a credential runs elsewhere and reports
# back as a commit status, so no secret is reachable from this workflow.
on:
pull_request:
push:
branches: [master, main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: build (python ${{ matrix.python }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ['3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- name: Import the installed package
# `--with .` installs this package into a throwaway environment, so this exercises the
# path a user takes and proves the dependency list in pyproject.toml is complete. Run
# from RUNNER_TEMP, or the import would resolve to the source directory instead of what
# was installed.
run: cd "$RUNNER_TEMP" && uv run --no-project --python ${{ matrix.python }} --with "$GITHUB_WORKSPACE" python -c "import flat_api; print(flat_api.__version__)"
- name: Compile every module
run: uv run --no-project --python ${{ matrix.python }} python -m compileall -q flat_api