Try adding python 3.12 support #155
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: Makefile CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- uses: snok/[email protected] | |
with: | |
version: 1.8.2 | |
virtualenvs-create: false | |
virtualenvs-in-project: false | |
- name: Lint | |
run: make lint | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: snok/[email protected] | |
with: | |
version: 1.8.2 | |
virtualenvs-create: false | |
virtualenvs-in-project: false | |
- name: Test | |
run: make test | |
doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- uses: snok/[email protected] | |
with: | |
version: 1.8.2 | |
virtualenvs-create: false | |
virtualenvs-in-project: false | |
- name: Test | |
run: make test | |
- name: Coverage Badge | |
run: make coverage-badge | |
- name: Doc | |
run: make doc | |
- name: Copy code coverage | |
run: cp -r .meta/html_cov .meta/doc | |
- name: Move coverage badge | |
run: mv .meta/html_cov/badge.svg .meta/doc | |
- name: Publish doc | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: .meta/doc | |
token: ${{ secrets.REPO_TOKEN }} | |
if: ${{ github.ref == 'refs/heads/main' }} |