File tree Expand file tree Collapse file tree 3 files changed +40
-7
lines changed Expand file tree Collapse file tree 3 files changed +40
-7
lines changed Original file line number Diff line number Diff line change 1
- # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
-
4
- name : Python package
1
+ name : Build and test
5
2
6
3
on :
7
4
push :
24
21
uses : actions/setup-python@v3
25
22
with :
26
23
python-version : ${{ matrix.python-version }}
27
- - name : Install dependencies
24
+ - name : Install prerequisites
25
+ run : |
26
+ python -m pip install --upgrade pip build
27
+ - name : Build package
28
28
run : |
29
- python -m pip install --upgrade pip
29
+ python -m build
30
+ - name : Install package
31
+ run :
30
32
pip install -e '.[dev]'
31
33
- name : Test with pytest
32
34
run : |
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+ publish :
10
+
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ fail-fast : false
14
+
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ - name : Set up Python ${{ matrix.python-version }}
18
+ uses : actions/setup-python@v3
19
+ with :
20
+ python-version : " 3.10"
21
+ - name : Install prerequisites
22
+ run : |
23
+ python -m pip install --upgrade pip build
24
+ - name : Build package
25
+ run : |
26
+ python -m build
27
+ - name : Publish distribution
28
+ if : startsWith(github.ref, 'refs/tags')
29
+ uses : pypa/gh-action-pypi-publish@master
30
+ with :
31
+ password : ${{ secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = pytest-opentelemetry
3
- version = 0.3.1
3
+ version = 0.3.2
4
4
author = Chris Guidry
5
5
6
6
description = A pytest plugin for instrumenting test runs via OpenTelemetry
You can’t perform that action at this time.
0 commit comments