File tree Expand file tree Collapse file tree 2 files changed +37
-10
lines changed Expand file tree Collapse file tree 2 files changed +37
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+ on :
3
+ release :
4
+ types :
5
+ - published
6
+ jobs :
7
+ PyPI :
8
+ name : publish release to PyPI
9
+ runs-on : ubuntu-latest
10
+ environment : release
11
+ permissions :
12
+ id-token : write
13
+ env :
14
+ SDIST : pytest-dependency-${{ github.event.release.tag_name }}.tar.gz
15
+ steps :
16
+ - name : Fetch assets
17
+ uses : cb80/dlassets@latest
18
+ with :
19
+ tag : ${{ github.event.release.tag_name }}
20
+ to : assets
21
+ - name : Check assets
22
+ run : |
23
+ ls -la assets
24
+ - name : Copy distfile to dist directory
25
+ run : |
26
+ mkdir -p dist
27
+ cp -p assets/$SDIST dist
28
+ - name : Upload distfile to PyPI
29
+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 6
6
strategy :
7
7
matrix :
8
8
python-version :
9
- - ' 2.7'
10
- - ' 3.5'
11
- - ' 3.6'
12
9
- ' 3.7'
13
10
- ' 3.8'
14
11
- ' 3.9'
15
12
- ' 3.10'
13
+ - ' 3.11'
14
+ - ' 3.12'
16
15
os : [ubuntu-latest]
16
+ include :
17
+ - python-version : ' 3.6'
18
+ os : ubuntu-20.04
17
19
steps :
18
20
- name : Check out repository code
19
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v4
20
22
with :
21
23
fetch-depth : 0
22
24
- name : Set up Python ${{ matrix.python-version }}
23
- uses : actions/setup-python@v2
25
+ uses : actions/setup-python@v4
24
26
with :
25
27
python-version : ${{ matrix.python-version }}
26
28
- name : Install dependencies
27
29
run : |
28
30
pip install -r .github/requirements.txt
29
- - name : Build
30
- run : |
31
- python setup.py build
32
31
- name : Test with pytest
33
32
run : |
34
- export PYTHONPATH=$(pwd)/build/lib
35
- python -m pytest tests
33
+ python setup.py test
You can’t perform that action at this time.
0 commit comments