From ba23b8b64f5082c813486581659b76d770b2ee8f Mon Sep 17 00:00:00 2001 From: speedcell4 Date: Sun, 25 Feb 2024 13:58:45 +0900 Subject: [PATCH] Chore: Update github workflows --- .github/workflows/publish-package.yml | 10 ++++------ .github/workflows/unit-tests.yml | 8 +++----- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index c4e0338..e7f3d7f 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -5,19 +5,17 @@ on: types: [ created ] jobs: - deploy: - + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.8' - name: Install dependencies run: | - python -m pip install pip setuptools wheel --upgrade + python -m pip install --upgrade pip setuptools wheel python -m pip install twine - name: Build and publish env: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index a48185b..0717269 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -8,21 +8,19 @@ on: jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.8' - name: Install dependencies run: | python -m pip install pip --upgrade python -m pip install -r requirements.txt - python -m pip install git+https://github.com/speedcell4/torchrua.git@develop --force-reinstall --no-deps python -m pip install pytest hypothesis torchnyan + python -m pip install git+https://github.com/speedcell4/torchrua.git@develop --force-reinstall --no-deps python -m pip install pytorch-crf torch-struct - name: Test with pytest run: |