| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,29 @@ | |||
| 1 | + name: Python package | ||
| 2 | + | ||
| 3 | + on: [push] | ||
| 4 | + | ||
| 5 | + jobs: | ||
| 6 | + build: | ||
| 7 | + | ||
| 8 | + runs-on: ubuntu-latest | ||
| 9 | + strategy: | ||
| 10 | + # You can use PyPy versions in python-version. | ||
| 11 | + # For example, pypy-2.7 and pypy-3.8 | ||
| 12 | + matrix: | ||
| 13 | + python-version: ["3.8", "3.9", "3.10"] | ||
| 14 | + | ||
| 15 | + steps: | ||
| 16 | + - uses: actions/checkout@v3 | ||
| 17 | + - name: Set up Python ${{ matrix.python-version }} | ||
| 18 | + uses: actions/setup-python@v3 | ||
| 19 | + with: | ||
| 20 | + python-version: ${{ matrix.python-version }} | ||
| 21 | + # You can test your matrix by printing the current Python version | ||
| 22 | + - name: Display Python version | ||
| 23 | + run: python -c "import sys; print(sys.version)" | ||
| 24 | + - name: install deps | ||
| 25 | + run: python setup.py install | ||
| 26 | + - name: install dev deps | ||
| 27 | + run: pip install pytest | ||
| 28 | + - name: test | ||
| 29 | + run: python -m unittest | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments