Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: Update Github Action workflow files #163

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/build_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ jobs:
run: |
pip install --upgrade pip
pip install -e .

- name: install openneuro-py
run: pip install openneuro-py

- name: install pytorch
run: pip install torch

- name: Install testing dependencies
run: pip install -r requirements_testing.txt

- name: Install doc dependencies
run: pip install -r docs/requirements_doc.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: pip install -r requirements_testing.txt
# Run Ruff
- name: Run Ruff
run: ruff pylossless
run: ruff check pylossless
# Run Codespell
- name: Run Codespell
run: codespell pylossless
63 changes: 63 additions & 0 deletions .github/workflows/main_pylossless-qc-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions

name: Build and deploy Python app to Azure Web App - pylossless-qc-demo

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python version
uses: actions/setup-python@v1
with:
python-version: '3.7'

- name: Create and start virtual environment
run: |
python -m venv venv
source venv/bin/activate

- name: Install dependencies
run: pip install -r requirements.txt

# Optional: Add step to run tests here (PyTest, Django test suites, etc.)

- name: Upload artifact for deployment jobs
uses: actions/upload-artifact@v2
with:
name: python-app
path: |
.
!venv/

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: python-app
path: .

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: 'pylossless-qc-demo'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_B1F7B3988A884792AC90F3E962E01A2B }}
4 changes: 0 additions & 4 deletions .github/workflows/test_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ jobs:
run: pip install -r requirements_testing.txt
- name: Install QC depedencies
run: pip install -r requirements_qc.txt
- name: install openneuro
run: pip install openneuro-py
- name: install pytorch
run: pip install torch
- name: Test Pipeline
run: |
coverage run -m pytest
Expand Down
1 change: 0 additions & 1 deletion docs/requirements_doc.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
openneuro-py
sphinx>=6
shibuya
sphinx-design
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
numpy>=1.21.2
EDFlib-Python
mne>=1.5
mne_bids>=0.14
pandas
Expand Down
4 changes: 3 additions & 1 deletion requirements_testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ pydocstyle
ruff
selenium
tomli; python_version<'3.11'
torch
torch
edfio
openneuro-py
Loading