Skip to content

Commit 7d82a13

Browse files
Update python-app.yml
1 parent 1213b79 commit 7d82a13

File tree

1 file changed

+14
-59
lines changed

1 file changed

+14
-59
lines changed

.github/workflows/python-app.yml

+14-59
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,25 @@
1-
# This workflow will upload a Python Package using Twine when a release is created
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
9-
name: Upload Python Package
1+
name: Reproduce Issue
102

113
on:
124
push:
13-
branches: [ "main" ]
14-
pull_request:
15-
branches: [ "main" ]
16-
17-
permissions:
18-
contents: read
5+
branches: [ issue-874 ]
196

207
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}
42-
43-
44-
deploy:
45-
8+
reproduce:
469
runs-on: ubuntu-latest
47-
4810
steps:
49-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
5012
- name: Set up Python
5113
uses: actions/setup-python@v5
5214
with:
53-
python-version: "3.10"
54-
55-
56-
57-
58-
59-
60-
- name: Install dependencies
15+
python-version: "3.11.8"
16+
- name: Set up
6117
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 }}
18+
mkdir test
19+
echo "print('OK')" > test/a.py
20+
mkdir test1
21+
echo "print('OK')" > test1/a.py
22+
- name: Run OK
23+
run: python -m test1.a
24+
- name: Run Fail
25+
run: python -m test.a

0 commit comments

Comments
 (0)