Repository navigation
61 lines (57 loc) · 1.88 KB
/
Copy pathsmoke.yml
File metadata and controls
61 lines (57 loc) · 1.88 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
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
name: smoke
on:
push:
branches: ['**']
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: smoke-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
generate:
name: generate (${{ matrix.name }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: library
extra: ''
- name: cli-app
extra: '--data is_application=true'
- name: web-service
extra: '--data web_service=true --data database=sqlite'
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
# no cache: the only lockfile is generated into runner.temp during the run
- uses: astral-sh/setup-uv@v8.2.0
with:
python-version: "3.11"
enable-cache: false
# --vcs-ref HEAD: exercise this commit, not the latest tag copier would default to
- run: >
uvx copier copy --vcs-ref HEAD --defaults
--data project_name=smoke-${{ matrix.name }}
--data description="Smoke-test project generated by CI"
${{ matrix.extra }}
. "$RUNNER_TEMP/gen"
- run: uv lock
working-directory: ${{ runner.temp }}/gen
- run: uv sync --locked
working-directory: ${{ runner.temp }}/gen
- run: uv run --no-sync ruff check
working-directory: ${{ runner.temp }}/gen
- run: uv run --no-sync ruff format --check
working-directory: ${{ runner.temp }}/gen
- run: uv run --no-sync mypy
working-directory: ${{ runner.temp }}/gen
- run: uv run --no-sync interrogate -v src
working-directory: ${{ runner.temp }}/gen
- run: uv run --no-sync mkdocs build --strict
working-directory: ${{ runner.temp }}/gen
- run: uv run --no-sync pytest --cov
working-directory: ${{ runner.temp }}/gen