Skip to content

Commit ba3c171

Browse files
committed
Freeze versions
This creates a file with a pip freeze so we have a reference of all the packages created for this release.
1 parent a4e3a53 commit ba3c171

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Freeze Versions
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- issue_2125_broken_selenium_tests
8+
# release:
9+
# types:
10+
# - published
11+
12+
permissions:
13+
# Give the GITHUB_TOKEN write permission to open a PR with the changes to the switcher.json file.
14+
contents: write
15+
16+
jobs:
17+
run:
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
shell: bash -l {0}
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
28+
- name: Setup Micromamba env
29+
uses: mamba-org/setup-micromamba@v2
30+
with:
31+
environment-name: TEST
32+
init-shell: bash
33+
create-args: >-
34+
python=3.12
35+
--file requirements.txt
36+
--file requirements-dev.txt
37+
38+
- name: Freeze versions
39+
run: |
40+
python -m pip freeze > frozen_versions.txt
41+
git config --local user.email "[email protected]"
42+
git config --local user.name "GitHub Action test"
43+
git add ./frozen_versions.txt
44+
git commit -m "store versions for later reference"
45+
46+
- name: Push changes # push the output folder to your repo
47+
uses: ad-m/github-push-action@master
48+
with:
49+
branch: issue_2125_broken_selenium_tests
50+
github_token: ${{ secrets.GITHUB_TOKEN }}
51+
force: true

0 commit comments

Comments
 (0)