-
Notifications
You must be signed in to change notification settings - Fork 25
62 lines (54 loc) · 1.67 KB
/
test_publish_pure_python.yml
File metadata and controls
62 lines (54 loc) · 1.67 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
62
on:
workflow_dispatch:
push:
paths:
- .github/workflows/publish_pure_python.yml
- .github/workflows/test_publish_pure_python.yml
- packages/subpackage/**
pull_request:
paths:
- .github/workflows/publish_pure_python.yml
- .github/workflows/test_publish_pure_python.yml
- packages/subpackage/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
release:
uses: ./.github/workflows/publish_pure_python.yml
with:
test_groups: test, concurrency
test_extras: recommended
test_command: pytest --pyargs test_package
timeout-minutes: 5
setenv:
uses: ./.github/workflows/publish_pure_python.yml
with:
save_artifacts: true
test_command: python -c "import os; assert os.getenv('CUSTOM_VAR') == 'custom value'"
env: |
CUSTOM_VAR: custom value
release_working_directory:
uses: ./.github/workflows/publish_pure_python.yml
with:
working-directory: packages/subpackage
test_extras: test
test_command: pytest --pyargs subpackage
upload_to_pypi: false
timeout-minutes: 5
test-upload-external:
name: Use built dists and test upload
runs-on: ubuntu-latest
needs: [setenv]
steps:
- name: Download artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
merge-multiple: true
pattern: dist-*
path: dist
- run: ls -lha dist/
- name: Run upload (this will fail)
continue-on-error: true
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0