From 3af7ac92d80cc18a2dfc517dcc81e3b6f7229c06 Mon Sep 17 00:00:00 2001 From: Sceki Date: Mon, 2 Dec 2024 18:17:45 +0000 Subject: [PATCH] build new --- .github/workflows/build.yml | 28 ++++++++----------- .github/workflows/install.yaml | 50 ---------------------------------- 2 files changed, 12 insertions(+), 66 deletions(-) delete mode 100644 .github/workflows/install.yaml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e541d52..2b824ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ env: on: push: - branches: [ master ] + branches: [ main ] pull_request: branches: [ '**' ] @@ -15,21 +15,25 @@ jobs: build: runs-on: ubuntu-latest - steps: - name: Checkout repository uses: actions/checkout@v3 # Start ssh-agent but set it to use the same ssh_auth_sock value. # The agent will be running in all steps after this, so it # should be one of the first. - - name: Set up Python 3.7 - uses: actions/setup-python@master + - name: Set up Python 3.8 + uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: 3.8 + - name: Install System Dependencies + run: | + sudo apt-get update + sudo apt-get install -y libfftw3-dev libopenblas-dev - name: Install run: | python -m pip install --upgrade pip pip install matplotlib + pip install jupyter pip install numpy pip install torch==1.11.0+cpu torchvision==0.12.0+cpu torchaudio==0.11.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html pip install .[dev] @@ -37,18 +41,10 @@ jobs: pip install sphinx-book-theme pip install myst-nb cd doc - make html linkcheck - - name: Test - run: | - coverage run -m pytest - coverage xml - - name: Codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - verbose: true + make html linkcheck + - name: Upload to github pages 🚀 if: ${{ github.event_name == 'push' }} uses: JamesIves/github-pages-deploy-action@v4 with: - folder: doc/_build/html # The folder the action should deploy. + folder: doc/_build/html # The folder the action should deploy. \ No newline at end of file diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml deleted file mode 100644 index 2b824ae..0000000 --- a/.github/workflows/install.yaml +++ /dev/null @@ -1,50 +0,0 @@ -name: build - -env: - # Use the same ssh-agent socket value across all jobs - # Useful when a GH action is using SSH behind-the-scenes - SSH_AUTH_SOCK: /tmp/ssh_agent.sock - -on: - push: - branches: [ main ] - pull_request: - branches: [ '**' ] - -jobs: - build: - - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - # Start ssh-agent but set it to use the same ssh_auth_sock value. - # The agent will be running in all steps after this, so it - # should be one of the first. - - name: Set up Python 3.8 - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - name: Install System Dependencies - run: | - sudo apt-get update - sudo apt-get install -y libfftw3-dev libopenblas-dev - - name: Install - run: | - python -m pip install --upgrade pip - pip install matplotlib - pip install jupyter - pip install numpy - pip install torch==1.11.0+cpu torchvision==0.12.0+cpu torchaudio==0.11.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html - pip install .[dev] - pip install sphinx - pip install sphinx-book-theme - pip install myst-nb - cd doc - make html linkcheck - - - name: Upload to github pages 🚀 - if: ${{ github.event_name == 'push' }} - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: doc/_build/html # The folder the action should deploy. \ No newline at end of file