Skip to content

Commit

Permalink
upgrade github actions for python setup and checkout to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
biphasic authored Oct 17, 2023
1 parent c0fa3f1 commit ee197c6
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
os: [ubuntu-latest, windows-2022]
python-version: ["3.7", "3.9", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- if: matrix.os == 'ubuntu-latest'
name: install audio library libsndfile
run: sudo apt-get -y update && sudo apt-get install -y libsndfile1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
Expand All @@ -33,11 +33,11 @@ jobs:
needs: multitest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: install audio library libsndfile
run: sudo apt-get -y update && sudo apt-get install -y libsndfile1
- name: Setup Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Generate coverage report
Expand All @@ -48,22 +48,21 @@ jobs:
coverage run -m pytest test
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3

documentation:
needs: multitest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: install audio library libsndfile
run: sudo apt-get -y update && sudo apt-get install -y libsndfile1
- name: Setup Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install -r docs/requirements.txt
pip install .
- name: Build documentation
Expand All @@ -80,7 +79,7 @@ jobs:
- name: install audio library libsndfile
run: sudo apt-get -y update && sudo apt-get install -y libsndfile1
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install wheel
Expand Down

0 comments on commit ee197c6

Please sign in to comment.