Skip to content

Commit 50dc78e

Browse files
Update python-app.yml
1 parent 07ccb8d commit 50dc78e

File tree

1 file changed

+42
-49
lines changed

1 file changed

+42
-49
lines changed

.github/workflows/python-app.yml

+42-49
Original file line numberDiff line numberDiff line change
@@ -18,60 +18,53 @@ permissions:
1818
contents: read
1919

2020
jobs:
21-
test:
22-
runs-on: macos-latest
23-
steps:
24-
- uses: actions/checkout@v2
25-
- uses: actions/setup-python@v2
26-
with:
27-
python-version: 3.7
28-
- run: |
29-
echo $PATH
30-
python --version
31-
which python
32-
- run: |
33-
echo $PATH
34-
python --version
35-
which python
36-
shell: bash {0}
37-
- run: |
38-
echo $PATH
39-
python --version
40-
which python
41-
shell: bash -l {0}
21+
# test:
22+
# runs-on: macos-latest
23+
# steps:
24+
# - uses: actions/checkout@v2
25+
# - uses: actions/setup-python@v2
26+
# with:
27+
# python-version: 3.7
28+
# - run: |
29+
# echo $PATH
30+
# python --version
31+
# which python
32+
# - run: |
33+
# echo $PATH
34+
# python --version
35+
# which python
36+
# shell: bash {0}
37+
# - run: |
38+
# echo $PATH
39+
# python --version
40+
# which python
41+
# shell: bash -l {0}
4242

4343

44-
# deploy:
44+
deploy:
4545

46-
# runs-on: ubuntu-latest
46+
runs-on: ubuntu-latest
4747

48-
# steps:
49-
# - uses: actions/checkout@v3
50-
# - name: Set up Python
51-
# uses: actions/setup-python@v5
52-
# with:
53-
# python-version: "3.10"
48+
steps:
49+
- uses: actions/checkout@v3
50+
- name: Set up Python
51+
uses: actions/setup-python@v5
52+
with:
53+
python-version: "3.10"
5454

55-
# - name: Modify PATH
56-
# run: echo "/opt/hostedtoolcache/Python/3.9.18/x64/bin" >> $GITHUB_PATH
57-
58-
59-
# - name: Check Python version
60-
# run: |
61-
# echo "Python path: $PATH"
62-
# /opt/hostedtoolcache/Python/3.9.18/x64/python --version
63-
# python --version
55+
6456

57+
6558

6659

67-
# - name: Install dependencies
68-
# run: |
69-
# python -m pip install --upgrade pip
70-
# pip install build
71-
# - name: Build package
72-
# run: python -m build
73-
# - name: Publish package
74-
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
75-
# with:
76-
# user: __token__
77-
# password: ${{ secrets.PYPI_API_TOKEN }}
60+
- name: Install dependencies
61+
run: |
62+
python -m pip install --upgrade pip
63+
pip install build
64+
- name: Build package
65+
run: python -m build
66+
- name: Publish package
67+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
68+
with:
69+
user: __token__
70+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)