-
Notifications
You must be signed in to change notification settings - Fork 31
88 lines (82 loc) · 2.15 KB
/
Copy pathpython-package.yml
File metadata and controls
88 lines (82 loc) · 2.15 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Test plac
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.14'
cache: pip
cache-dependency-path: setup.py
- name: Install flake8
run: python -m pip install flake8
- name: Lint
run: flake8 *.py --count --select=E9,F63,F7,F82 --show-source --statistics
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.10', '3.14', '3.15']
include:
- os: macos-latest
python-version: '3.14'
- os: windows-latest
python-version: '3.14'
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
cache-dependency-path: setup.py
- name: Install
run: python -m pip install -e .
- name: Tests
run: python doc/test_plac.py
- name: Interpreter tests
working-directory: doc
run: python test_ishelve.py
package:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.14'
cache: pip
cache-dependency-path: setup.py
- name: Build and check
run: |
python -m pip install build twine
python -m build
twine check dist/*
- name: Install from sdist
run: python -m pip install dist/*.tar.gz
- name: Tests against installed package
run: |
python -c "import plac; print(plac.__file__)"
python doc/test_plac.py