From 28ae921023158c9820e6a90960d1968040f443ca Mon Sep 17 00:00:00 2001 From: lindsay stevens Date: Wed, 17 Jan 2024 20:00:17 +1100 Subject: [PATCH] dev: update github actions - bump actions version numbers - update syntax for install, build, test --- .github/workflows/release.yml | 6 +++--- .github/workflows/verify.yml | 26 +++++++++++++------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26f7d543..a3f9e939 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,14 +12,14 @@ jobs: python: ['3.8'] os: [ubuntu-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} # Install dependencies. - - uses: actions/cache@v2 + - uses: actions/cache@v3 name: Python cache with dependencies. id: python-cache with: diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index d4c3e44c..0da2c523 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -10,14 +10,14 @@ jobs: python: ['3.8'] os: [ubuntu-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} # Install dependencies. - - uses: actions/cache@v2 + - uses: actions/cache@v3 name: Python cache with dependencies. id: python-cache with: @@ -26,7 +26,7 @@ jobs: - name: Install dependencies. run: | python -m pip install --upgrade pip - pip install -r dev_requirements.pip + pip install -e .[dev] pip list # Linter. @@ -45,14 +45,14 @@ jobs: - os: windows-latest windows_nose_args: --traverse-namespace ./tests steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} # Install dependencies. - - uses: actions/cache@v2 + - uses: actions/cache@v3 name: Python cache with dependencies. id: python-cache with: @@ -61,22 +61,22 @@ jobs: - name: Install dependencies. run: | python -m pip install --upgrade pip - pip install -r dev_requirements.pip + pip install -e .[dev] pip list # Tests. - name: Run tests - run: nosetests -v -v ${{ matrix.windows_nose_args }} + run: python -m unittest # Build and Upload. - name: Build sdist and wheel. + if: success() run: | - pip install wheel - python clean_for_build.py - python setup.py sdist bdist_wheel + pip install flit==3.9.0 + flit --debug build --no-use-vcs - name: Upload sdist and wheel. if: success() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: pyxform--on-${{ matrix.os }}--py${{ matrix.python }} path: ${{ github.workspace }}/dist/pyxform*