From d022195e487c479cf62309741ca4ec35173c728f Mon Sep 17 00:00:00 2001 From: Vojta Mrazek Date: Wed, 22 Feb 2023 12:08:21 +0100 Subject: [PATCH] Workflow (#16) * workflow * workflow * workflow --- .github/workflows/generate.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 23bd359..0d65701 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -17,9 +17,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -44,14 +44,17 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install iverilog run: sudo apt install iverilog - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 + with: + # Semantic version range syntax or exact version of a Python version + python-version: '3.x' - run: python -m pip install numpy - name: Download workflow run artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: arithmetic-circuits-8 path: test_circuits @@ -87,9 +90,9 @@ jobs: python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ] name: Python ${{ matrix.python-version }} test steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} architecture: x64 @@ -104,9 +107,9 @@ jobs: needs: test if: github.ref == 'refs/heads/main' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -120,12 +123,12 @@ jobs: - name: Generate documentation run: pdoc --html ariths_gen - name: Upload results - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v3 with: name: documentation path: html - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@4.1.4 + uses: JamesIves/github-pages-deploy-action@4 with: branch: gh-pages # The branch the action should deploy to. folder: html/ariths_gen # The folder the action should deploy. \ No newline at end of file