Skip to content

Commit fb24d27

Browse files
committed
DOP-3298: Upgrade release Python to 3.11
1 parent f022bfe commit fb24d27

File tree

3 files changed

+62
-35
lines changed

3 files changed

+62
-35
lines changed

.github/workflows/release.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]*'
7+
8+
jobs:
9+
test:
10+
strategy:
11+
matrix:
12+
platform: [ubuntu-20.04, macos-latest]
13+
runs-on: ${{ matrix.platform }}
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.11'
21+
architecture: 'x64'
22+
- name: Run tests
23+
run: make test
24+
env:
25+
FLIT_ROOT_INSTALL: "1"
26+
- name: Build package
27+
id: build_package
28+
run: make package
29+
- name: Upload package
30+
uses: actions/upload-artifact@v3
31+
with:
32+
name: packages
33+
path: dist/${{ steps.build_package.outputs.package_filename }}
34+
35+
release:
36+
if: startsWith(github.ref, 'refs/tags/v')
37+
needs: test
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Download
41+
uses: actions/download-artifact@v1
42+
with:
43+
name: packages
44+
- name: Get environment
45+
id: environment
46+
run: |
47+
echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
48+
echo "tag_name=$(echo ${{ github.ref }} | cut -d / -f 3)" >> $GITHUB_OUTPUT
49+
- name: Create Release
50+
id: create_release
51+
uses: ncipollo/release-action@4874428bc07f8473128b16dfb628a0bcfb6ca10d
52+
with:
53+
tag: ${{ steps.environment.outputs.tag_name }}
54+
name: "Release: [${{ steps.environment.outputs.tag_name }}] - ${{ steps.environment.outputs.date }}"
55+
artifacts: "packages/*.zip"
56+
artifactContentType: "application/zip"
57+
token: ${{ secrets.GITHUB_TOKEN }}
58+
draft: true
59+
prerelease: true

.github/workflows/test.yml

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@ on:
55
branches:
66
- master
77
- 'v[0-9]*'
8-
tags:
9-
- 'v[0-9]*'
108
pull_request:
119

1210
jobs:
1311
test:
1412
strategy:
1513
matrix:
1614
platform: [ubuntu-20.04, macos-latest]
15+
python-version: ['3.8', '3.11']
1716
runs-on: ${{ matrix.platform }}
1817
steps:
1918
- uses: actions/checkout@v3
2019
with:
2120
fetch-depth: 0
2221
- uses: actions/setup-python@v4
2322
with:
24-
python-version: '3.8'
23+
python-version: ${{ matrix.python-version }}
2524
architecture: 'x64'
2625
- name: Run tests
2726
run: make test
@@ -30,34 +29,3 @@ jobs:
3029
- name: Build package
3130
id: build_package
3231
run: make package
33-
- name: Upload package
34-
uses: actions/upload-artifact@v3
35-
with:
36-
name: packages
37-
path: dist/${{ steps.build_package.outputs.package_filename }}
38-
39-
release:
40-
if: startsWith(github.ref, 'refs/tags/v')
41-
needs: test
42-
runs-on: ubuntu-latest
43-
steps:
44-
- name: Download
45-
uses: actions/download-artifact@v1
46-
with:
47-
name: packages
48-
- name: Get environment
49-
id: environment
50-
run: |
51-
echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
52-
echo "tag_name=$(echo ${{ github.ref }} | cut -d / -f 3)" >> $GITHUB_OUTPUT
53-
- name: Create Release
54-
id: create_release
55-
uses: ncipollo/release-action@4874428bc07f8473128b16dfb628a0bcfb6ca10d
56-
with:
57-
tag: ${{ steps.environment.outputs.tag_name }}
58-
name: "Release: [${{ steps.environment.outputs.tag_name }}] - ${{ steps.environment.outputs.date }}"
59-
artifacts: "packages/*.zip"
60-
artifactContentType: "application/zip"
61-
token: ${{ secrets.GITHUB_TOKEN }}
62-
draft: true
63-
prerelease: true

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dev = [
2828
"black ~= 22.3.0",
2929
"pyflakes ~= 2.4",
3030
"mypy == 0.960",
31-
"pyinstaller ~= 4.10",
31+
"pyinstaller ~= 5.6",
3232
"isort ~= 5.10.1",
3333
"types-requests ~= 2.26.1"
3434
]

0 commit comments

Comments
 (0)