try doing it at the start?!?!? #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
# this Action should follow steps to set up Python build environment | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python dependencies | |
uses: py-actions/py-dependency-install@v4 | |
with: | |
path: "requirements.txt" | |
# You can test your matrix by printing the current Python version | |
- name: Run Python Builder | |
run: python build.py | |
- name: Commit docs directory | |
run: | | |
git add docs/ | |
git config --global user.name 'github-actions' | |
git config --global user.email '[email protected]' | |
git commit -am "Automated report" | |
git push | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: docs # The folder the action should deploy. |