Merge branch 'main' into effort_filenames #787
Workflow file for this run
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: CI | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v4 | |
- name: Use Python 3.12 π | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install requirements πΎ | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run tests π§ͺ | |
run: pytest | |
deploy: | |
runs-on: ubuntu-latest | |
needs: test | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Use Python 3.12 π | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install pandoc πΎ | |
run: sudo apt-get install pandoc pandoc-citeproc | |
- name: Install requirements πΎ | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run make π§ | |
run: make | |
- name: Deploy π | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: output |