Skip to content

Commit dc8be45

Browse files
cd $BASE_DIR
1 parent 380020d commit dc8be45

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/python_test.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
name: python_test
66

7-
on: [push, workflow_dispatch] # pull_request, push, workflow_dispatch
7+
on:
8+
workflow_dispatch:
9+
push:
10+
branches:
11+
- main
12+
pull_request:
813

914
jobs:
1015
ci:
@@ -31,16 +36,17 @@ jobs:
3136
run: |
3237
BASE_DIR=$(cat BASE_DIR)
3338
echo "BASE_DIR=$BASE_DIR" >> $GITHUB_ENV
39+
- run: cd ${{ env.BASE_DIR }}
3440
- name: Read .tool-versions # dynamic versions
3541
uses: marocchino/tool-versions-action@v1
3642
id: versions
3743
with:
3844
path: ${{ env.BASE_DIR }}/.tool-versions
39-
- name: shuffle files
40-
run: |
41-
cat ${{ env.BASE_DIR }}/.tool-versions | awk '/python/ {print $NF}' >> ${{ env.BASE_DIR }}/.python-version
42-
[[ -e "$(pwd)/pyproject.toml" ]] && mv "$(pwd)/pyproject.toml" "$(pwd)/pyproject.toml.bak"
43-
cp "${{ env.BASE_DIR }}/pyproject.toml" $(pwd)/
45+
# - name: shuffle files
46+
# run: |
47+
# cat ${{ env.BASE_DIR }}/.tool-versions | awk '/python/ {print $NF}' >> ${{ env.BASE_DIR }}/.python-version
48+
# [[ -e "$(pwd)/pyproject.toml" ]] && mv "$(pwd)/pyproject.toml" "$(pwd)/pyproject.toml.bak"
49+
# cp "${{ env.BASE_DIR }}/pyproject.toml" $(pwd)/
4450
- name: setup python
4551
uses: actions/setup-python@v4
4652
with:

BASE_DIR

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
./cwd
1+
./python_template

0 commit comments

Comments
 (0)