Skip to content

Commit cf806e5

Browse files
committed
Fix up the pypi builds
1 parent 47c53fa commit cf806e5

File tree

2 files changed

+40
-41
lines changed

2 files changed

+40
-41
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,30 @@ on:
55
pull_request:
66
# Run daily at 0:01 UTC
77
schedule:
8-
- cron: '1 0 * * *'
8+
- cron: "1 0 * * *"
99

1010
jobs:
1111
flake8:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- name: Set up Python 3.7
16-
uses: actions/setup-python@v2
17-
with:
18-
python-version: 3.7
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip setuptools wheel
22-
pip install --no-cache-dir -e .[complete]
23-
pip list
24-
- name: Lint with Flake8
25-
run: |
26-
flake8
27-
- name: Build the pypi package
28-
env:
29-
func_adl_version: 1.0b10
30-
run: |
31-
python setup_func_adl.py sdist bdist_wheel
32-
python setup_func_adl_ast.py sdist bdist_wheel
14+
- uses: actions/checkout@v2
15+
- name: Set up Python 3.7
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.7
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip setuptools wheel
22+
pip install --no-cache-dir -e .[complete]
23+
pip list
24+
- name: Lint with Flake8
25+
run: |
26+
flake8
27+
- name: Build the pypi package
28+
env:
29+
func_adl_version: 1.0b10
30+
run: |
31+
python setup.py sdist bdist_wheel
3332
3433
test:
3534
runs-on: ${{ matrix.os }}
@@ -41,23 +40,23 @@ jobs:
4140
python-version: [3.7, 3.8, 3.9, "3.10"]
4241

4342
steps:
44-
- uses: actions/checkout@v2
45-
- name: Set up Python ${{ matrix.python-version }}
46-
uses: actions/setup-python@v2
47-
with:
48-
python-version: ${{ matrix.python-version }}
49-
- name: Install dependencies
50-
run: |
51-
python -m pip install --upgrade pip setuptools wheel
52-
pip install --no-cache-dir -e .[complete]
53-
pip list
54-
- name: Test with pytest
55-
run: |
56-
python -m pytest -r sx
57-
- name: Report coverage with Codecov
58-
if: github.event_name == 'push' && matrix.python-version == 3.9 && matrix.os == 'ubuntu-latest'
59-
uses: codecov/codecov-action@v1
60-
with:
61-
token: ${{ secrets.CODECOV_TOKEN }}
62-
file: ./coverage.xml
63-
flags: unittests
43+
- uses: actions/checkout@v2
44+
- name: Set up Python ${{ matrix.python-version }}
45+
uses: actions/setup-python@v2
46+
with:
47+
python-version: ${{ matrix.python-version }}
48+
- name: Install dependencies
49+
run: |
50+
python -m pip install --upgrade pip setuptools wheel
51+
pip install --no-cache-dir -e .[complete]
52+
pip list
53+
- name: Test with pytest
54+
run: |
55+
python -m pytest -r sx
56+
- name: Report coverage with Codecov
57+
if: github.event_name == 'push' && matrix.python-version == 3.9 && matrix.os == 'ubuntu-latest'
58+
uses: codecov/codecov-action@v1
59+
with:
60+
token: ${{ secrets.CODECOV_TOKEN }}
61+
file: ./coverage.xml
62+
flags: unittests

.github/workflows/pypi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
env:
2424
func_adl_version: ${{ github.ref }}
2525
run: |
26-
python setup_func_adl.py sdist bdist_wheel
26+
python setup.py sdist bdist_wheel
2727
- name: Publish a func_adl to PyPI
2828
uses: pypa/gh-action-pypi-publish@v1.3.1
2929
with:

0 commit comments

Comments
 (0)