[Snyk] Security upgrade black from 22.1.0 to 24.3.0 #1453
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create deployment | |
on: | |
push: | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
create-deployment: | |
name: Create deployment | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Create the deployment itself | |
- name: Run create_deployment script | |
shell: cmd | |
run: create_deployment.bat | |
- name: Run Pepys install script | |
shell: cmd | |
run: powershell.exe -executionpolicy remotesigned -File .\bin\install_pepys.ps1 | |
- name: Test a simple import | |
shell: cmd | |
run: cd bin & pepys_import.bat --path ../tests/sample_data/track_files/rep_data/rep_test1.rep --db ":memory:" --resolver default | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Pepys Deployment | |
path: ./pepys_import*.zip | |
if-no-files-found: error | |
- name: Calculate release name | |
id: get_name | |
run: echo ::set-output name=release_name::`date +"%Y%m%d"` - Version ${GITHUB_REF#refs/tags/} | |
- name: Create release (only for tags) | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') && ( github.event.base_ref == 'refs/heads/master' || github.event.base_ref == 'refs/heads/develop' ) | |
with: | |
draft: true | |
files: ./pepys_import*.zip | |
name: ${{ steps.get_name.outputs.release_name }} | |
fail_on_unmatched_files: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |