-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 977 Bytes
/
python-test.yml
File metadata and controls
42 lines (37 loc) · 977 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
37
38
39
40
41
42
# # python-publish.yml -*- mode: YAML -*-
# Actions to build and upload to pypi
# Actions Used:
# https://github.com/astral-sh/setup-uv
# https://github.com/actions/checkout/
# https://github.com/actions/upload-artifact
# https://github.com/actions/download-artifact
# https://github.com/pypa/gh-action-pypi-publish
name: Run Tests
on:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: read
# --------------------------------------------------
jobs:
test:
runs-on: ubuntu-latest
environment: publishing
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/setup@v4
- name: setup polyglot
run: |
asdf plugin add direnv
asdf plugin add uv
asdf install
direnv allow
direnv export gha >> "$GITHUB_ENV"
- name: setup
run: |
uv venv
uv sync --group test
- name: test
run: |
uv run tox -e test