Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Futsch1 committed Oct 28, 2023
1 parent eec20c2 commit 0e81444
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/build.yml
Expand Up @@ -2,26 +2,13 @@ name: Build

on: [push, pull_request,workflow_dispatch]

env:
LATEST_PYTHON: 3.11

jobs:
get-python-versions:
runs-on: ubuntu-latest
outputs:
python-matrix: ${{ steps.get-python-versions-action.outputs.latest-python-versions }}
steps:
- uses: snok/latest-python-versions@v1
id: get-python-versions-action
with:
min-version: 3.8

build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.7", ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }} ]
python-version: [ "3.7", "3.11" ]

steps:
- uses: actions/checkout@v3
Expand All @@ -47,11 +34,11 @@ jobs:
coverage html -d coverage
- name: Coveralls
if: ${{ matrix.python-version }} == ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }}
if: ${{ matrix.python-version }} == "3.11"
uses: AndreMiras/coveralls-python-action@develop

- name: Upload test results
if: ${{ matrix.python-version }} == ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }}
if: ${{ matrix.python-version }} == "3.11"
uses: actions/upload-artifact@v2
with:
name: coverage-report
Expand All @@ -65,10 +52,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }}
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }}
python-version: "3.11"
- name: Install pypa/build
run: |
python -m pip install build --user
Expand Down

0 comments on commit 0e81444

Please sign in to comment.