Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better CI #822

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
linter:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -54,6 +59,7 @@ jobs:
test-minimal:
name: Test on minimal requirements
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -72,6 +78,7 @@ jobs:
name: Test ${{ matrix.os }} with py${{ matrix.python }}
needs: linter
runs-on: ${{ matrix.os }}
if: github.event.pull_request.draft == false
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
Expand All @@ -96,6 +103,7 @@ jobs:
name: Test examples on ${{ matrix.os }} with py${{ matrix.python }}, min ${{ matrix.minimal }}
needs: test
runs-on: ${{ matrix.os }}
if: github.event.pull_request.draft == false
strategy:
matrix:
os: [ ubuntu-latest ]
Expand Down Expand Up @@ -127,6 +135,7 @@ jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down