Skip to content

Commit

Permalink
fix: syntax error in test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akatief committed Feb 21, 2024
1 parent 2b44370 commit 4d54bde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
- name: Get package name
id: get_package_name
run: |
echo "::set-output name=package_name::$(python -c "import re; \
with open('setup.py', 'r') as f: \
data = f.read(); \
print(re.search(r"name\s*=\s*['\"]([^'\"]+)['\"]", data).group(1))")"
setup_file="setup.py"
pattern="name="
project_name=$(grep -oP "(?<=${pattern}\")[^\"]+" $setup_file)
echo "::set-output name=package_name::$project_name"
- name: Run tests
run: |
Expand Down

0 comments on commit 4d54bde

Please sign in to comment.