Skip to content

Commit 39d5967

Browse files
authored
Add codeowners file and get workflows working again (#266)
* Add standard Salesforce codeowners file * Update workflow Python versions * Fix and get the workflows working again
1 parent 82bf2d1 commit 39d5967

File tree

4 files changed

+41
-41
lines changed

4 files changed

+41
-41
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Publish to PyPi
22

3-
43
on:
54
workflow_dispatch:
65
push:
@@ -11,24 +10,23 @@ jobs:
1110
name: Build dist files for PyPi
1211
runs-on: ubuntu-latest
1312
steps:
14-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1514
with:
1615
fetch-depth: 0
17-
- uses: actions/setup-python@v1
16+
- uses: actions/setup-python@v4
1817
with:
19-
python-version: 3.8
18+
python-version: 3.13
2019
- name: Build dist files
2120
run: >
2221
python -m pip install --upgrade pip && pip install -e .[build] &&
2322
python setup.py build &&
2423
python setup.py sdist --formats=gztar
2524
- name: Publish distribution 📦 to Test PyPI
26-
uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2
25+
uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2
2726
with:
2827
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
2928
repository_url: https://test.pypi.org/legacy/
3029
- name: Publish distribution 📦 to PyPI
31-
uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2
30+
uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2
3231
with:
3332
password: ${{ secrets.PYPI_API_TOKEN }}
34-

.github/workflows/python-package.yml

Lines changed: 30 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,54 +6,50 @@ name: Python package
66
on:
77
push:
88
paths-ignore:
9-
- 'docs/**'
9+
- "docs/**"
1010
pull_request:
11-
branches: '*'
11+
branches: "*"
1212

1313
jobs:
1414
build:
15-
1615
runs-on: ubuntu-latest
1716
strategy:
1817
fail-fast: false
1918
matrix:
20-
python-version: [3.7, 3.8, 3.9, '3.10']
19+
python-version: ["3.10", "3.11", "3.12", "3.13"]
2120

2221
steps:
23-
- uses: actions/checkout@v2
24-
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v2
26-
with:
27-
python-version: ${{ matrix.python-version }}
28-
- name: Install dependencies
29-
run: |
30-
python -m pip install --upgrade pip
31-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32-
- name: Test
33-
run: |
34-
python setup.py test
35-
36-
22+
- uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31+
- name: Test
32+
run: |
33+
python -m unittest discover -v
34+
3735
lint:
38-
3936
runs-on: ubuntu-latest
4037
strategy:
4138
fail-fast: false
4239
matrix:
43-
python-version: [3.9]
40+
python-version: [3.13]
4441

4542
steps:
46-
- uses: actions/checkout@v2
47-
- name: Set up Python ${{ matrix.python-version }}
48-
uses: actions/setup-python@v2
49-
with:
50-
python-version: ${{ matrix.python-version }}
51-
- name: Install dependencies
52-
run: |
53-
python -m pip install --upgrade pip
54-
python -m pip install pycodestyle
55-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
56-
- name: Lint with pycodestyle
57-
run: |
58-
pycodestyle tableaudocumentapi test samples
59-
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
51+
python -m pip install pycodestyle
52+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
53+
- name: Lint with pycodestyle
54+
run: |
55+
pycodestyle tableaudocumentapi test samples

CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#ECCN:Open Source
2+
#GUSINFO:Open Source,Open Source Workflow

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
lxml
2+
setuptools
3+
packaging
4+
pycodestyle

0 commit comments

Comments
 (0)