Skip to content

Commit

Permalink
Modernize the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-rose committed Feb 3, 2025
1 parent ed73887 commit f30ad64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request:
workflow_dispatch: # allows you to trigger manually

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

jobs:
pre-job:
runs-on: ubuntu-latest
Expand All @@ -29,17 +33,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9']
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
channels: conda-forge
miniforge-variant: Mambaforge
activate-environment: pythia-datasets
auto-update-conda: false
python-version: ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pypi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: 3.8
python-version: 3.11

- name: Install dependencies
run: |
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: 3.8
python-version: 3.11
- uses: actions/download-artifact@v4
with:
name: releases
Expand Down

0 comments on commit f30ad64

Please sign in to comment.