-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (55 loc) · 1.85 KB
/
publish_testpypi.yml
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
# .github/workflows/publish_testpypi.yml
---
name: test-n-build
on:
push:
tags:
- v*
jobs:
super-test:
strategy:
matrix:
os: [ubuntu-latest] #, windows-latest, macos-latest]
pyvers: [3.09, ''] #, 3.10, 3.11, 3.12, 3.13]
name: Build and Test
runs-on: ${{ matrix.os }}
# environment:
# name: pypi
# url: https://test.pypi.org/p/choreographer
# IMPORTANT: this permission is mandatory for trusted publishing
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- name: Install Dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get update && sudo apt-get install xvfb
timeout-minutes: 1
# must actually checkout for version determination
- run: git checkout ${{ github.ref_name }}
- run: uv python install ${{ matrix.pyvers }}
- run: git status
# don't modify sync file! messes up version!
- run: uv sync --frozen --all-extras
- run: git restore . # delete uv.lock changest
- run: uv build
- run: uv run --no-sync choreo_get_browser
- run: uv pip install dist/choreographer*.whl
# should we delete choreographer?
- name: Test
if: ${{ ! runner.debug && matrix.os != 'ubuntu-latest' }}
run: uv run poe test
timeout-minutes: 7
- name: Test (Linux)
if: ${{ ! runner.debug && matrix.os == 'ubuntu-latest' }}
run: xvfb-run uv run poe test
timeout-minutes: 7
- name: Test (Debug)
if: runner.debug
run: uv run poe debug-test
- run: uv run --no-sync poe test
# different versions of chrome
# REMEMBER TO GO BACK ONE COMMIT ON OTHER BRANCH
#- name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1