Skip to content

Commit

Permalink
Add workflow to update pipfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
janbridley committed Jul 9, 2024
1 parent 2570a34 commit bf11099
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/update_pipfiles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Update pipfiles

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

on:
pull_request:
workflow_dispatch:

jobs:
udpate_pipfiles:
name: Run tests on ubuntu-latest with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8","3.9","3.10","3.11","3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: glotzerlab/workflows/setup-uv
- name: Set up Python environment
run: |
pipfile=".github/requirements${{matrix.python-version}}.txt"
echo "#" $(python --version) > pipfile
uv pip compile requirements.txt tests/requirements.txt >> pipfile

0 comments on commit bf11099

Please sign in to comment.