Skip to content

Commit 966c8c8

Browse files
authored
Create python-package.yml
1 parent 045ba97 commit 966c8c8

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Python package
5+
6+
on: push
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
max-parallel: 1
15+
matrix:
16+
python-version: ["3.8", "3.13"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install build tox tox-gh-actions
28+
- name: Build sdist and wheel
29+
run: |
30+
python -m build
31+
- name: Test with tox
32+
run: |
33+
echo "${GSHEETS_CREDENTIALS}" > tests/creds.json
34+
echo "${TESTS_CONFIG}" > tests/tests.config
35+
tox -v
36+
env:
37+
GSHEETS_CREDENTIALS: ${{secrets.GSHEETS_CREDENTIALS}}
38+
TESTS_CONFIG: ${{secrets.TESTS_CONFIG}}
39+
40+

0 commit comments

Comments
 (0)