File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments