Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ejklock authored Aug 15, 2024
1 parent 0d57ab0 commit 58a5935
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pyinstaller
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if (Test-Path requirements.txt) { pip install -r requirements.txt }
shell: pwsh
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
Expand All @@ -39,10 +40,11 @@ jobs:
if: matrix.os == 'ubuntu-latest'
id: create_tag
run: |
VERSION=$(date +"%Y%m%d%H%M%S")
echo "VERSION=$VERSION" >> $GITHUB_ENV
$VERSION = Get-Date -Format "yyyyMMddHHmmss"
echo "VERSION=$VERSION" >> $env:GITHUB_ENV
git tag $VERSION
git push origin $VERSION
shell: pwsh
- name: Create GitHub Release
if: matrix.os == 'ubuntu-latest'
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 58a5935

Please sign in to comment.