Skip to content

Commit

Permalink
ci.yml- Change on:, python-version:, pytest invocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmarktaylor committed Aug 4, 2024
1 parent 4f50288 commit c9f8f41
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: CI

on:
push:
paths-ignore:
- .github/workflows/deploy.yml
workflow_dispatch:
pull_request:
branches: [develop]
push:
branches:
- 'main'
paths-ignore:
- .github/workflows/deploy.yml
- '.github/workflows/publish.yml'
- '.github/workflows/wheel.yml'

jobs:
versions:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["pypy-3.7", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"] # todo- pypy
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand All @@ -29,9 +30,10 @@ jobs:
pip freeze
- name: pytest
run: |
pytest -v test
python -m pytest -v test
os:
needs: versions
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -62,9 +64,10 @@ jobs:
pip freeze
- name: pytest
run: |
pytest -v test
python -m pytest -v test
coverage:
needs: os
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -105,6 +108,7 @@ jobs:
verbose: true # optional (default = false)

inspect:
needs: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -148,6 +152,7 @@ jobs:
twine check dist/*
docs:
needs: inspect
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit c9f8f41

Please sign in to comment.