Skip to content

Commit

Permalink
dev: update github actions
Browse files Browse the repository at this point in the history
- bump actions version numbers
- update syntax for install, build, test
  • Loading branch information
lindsay-stevens committed Jan 17, 2024
1 parent 060e8f3 commit 28ae921
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand All @@ -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:
Expand All @@ -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*

0 comments on commit 28ae921

Please sign in to comment.