-
Notifications
You must be signed in to change notification settings - Fork 30
49 lines (44 loc) · 1.24 KB
/
release.yml
File metadata and controls
49 lines (44 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Foundry DevTools Release
on:
push:
tags: ["v*"]
concurrency:
group: check-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with: {fetch-depth: 0} # deep clone for git tag
- uses: pdm-project/setup-pdm@v4
with:
python-version: "3.12"
cache: true
- name: Install dependencies
run: pdm install --frozen-lockfile
- name: Run static analysis and format checkers
run: pdm run lint
- name: Run python tests
run: pdm run unit
publish:
needs: tests
runs-on: ubuntu-latest
permissions:
# This permission is needed for private repositories.
contents: read
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
environment: release
steps:
- uses: actions/checkout@v3
- uses: pdm-project/setup-pdm@v4
with:
python-version: "3.12"
cache: true
- name: publish foundry-dev-tools
working-directory: libs/foundry-dev-tools/
run: pdm publish
- name: publish foundry-dev-tools-transforms
working-directory: libs/transforms/
run: pdm publish