Skip to content

Commit

Permalink
use latest python setup gh actions (#295)
Browse files Browse the repository at this point in the history
* use latest python setup gh actions

* cache via setup.py

actions/setup-python#549
  • Loading branch information
camallen committed Dec 6, 2022
1 parent ff0d374 commit 3e0e499
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/run-tests.yml
Expand Up @@ -12,18 +12,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}
python-version: '3.9'
cache: 'pip' # caching pip dependencies
cache-dependency-path: setup.py
- name: Install dependencies
run: |
pip install -U pip
pip install -U .[testing,docs]
- name: Run tests
run: python -m unittest discover
run: python -m unittest discover

0 comments on commit 3e0e499

Please sign in to comment.