Skip to content

Commit

Permalink
🔏 Update lockfiles (#166)
Browse files Browse the repository at this point in the history
* Fixes doc lockfile updater

* Adds merge_group to CI/CD events
  • Loading branch information
mrharpo authored May 20, 2024
1 parent 892cc6c commit dbbdbad
Show file tree
Hide file tree
Showing 8 changed files with 591 additions and 2,129 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- main
release:
types: [published, edited, prereleased]
merge_group:
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🧪 Integration Tests

on: [push, pull_request, workflow_dispatch]
on: [push, pull_request, merge_group, workflow_dispatch]

jobs:
tests:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: đź“° Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 📲 Setup PDM
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v4
id: setup-python
with:
python-version: 3.x
Expand All @@ -26,7 +26,7 @@ jobs:
run: pdm build

- name: 🛫 Export build files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
Expand All @@ -40,7 +40,7 @@ jobs:
id-token: write
steps:
- name: 🛬 Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: đź—ž Publish package
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 2 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ jobs:
update:
name: 🦿 Update dependencies
uses: WGBH-MLA/.github/.github/workflows/update.yml@main
with:
pdm_args: -G dev,test,cli -u --save-compatible --no-sync --no-self && pdm update --no-default -G docs -L pdm-locks/pdm.doc.lock --unconstrained --save-compatible --no-sync --no-self
39 changes: 39 additions & 0 deletions docs/pdm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# PDM

Package management scripts for ov-wag

## Install project

```bash
pdm install
```

## Run scripts

There are several scripts that can be run directly from the command line. They can be run by running:

```bash
pdm ov
```

## Create lockfiles

```bash
# dev
pdm lock -G dev,test,cli
# prod
pdm lock --prod -G production -L pdm-locks/pdm.prod.lock
# docs
pdm lock --no-default -G docs -L pdm-locks/pdm.doc.lock
```

## Update lockfiles

```bash
# dev
pdm update -G dev,test,cli --unconstrained --save-compatible
# prod
pdm update --prod -G production -L pdm-locks/pdm.prod.lock --unconstrained --save-compatible
# docs
pdm update --no-default -G docs -L pdm-locks/pdm.doc.lock --unconstrained --save-compatible
```
987 changes: 437 additions & 550 deletions pdm-locks/pdm.doc.lock

Large diffs are not rendered by default.

726 changes: 0 additions & 726 deletions pdm-locks/pdm.prod.lock

This file was deleted.

955 changes: 107 additions & 848 deletions pdm.lock

Large diffs are not rendered by default.

0 comments on commit dbbdbad

Please sign in to comment.