started to implement and use Loss Balancer from Encodec@FB #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test on Python ${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.12] # Specify the Python versions you want to test | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
lfs: true # Enable Git LFS | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
pip install pytest pytest-cov pytest-mock | |
- name: Modify PYTHONPATH | |
run: | | |
echo "PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}" >> $GITHUB_ENV | |
- name: Run consistency tests | |
run: | | |
pytest -m consistency | |
env: | |
CI: true | |
# - name: Run nonregression tests | |
# run: | | |
# pytest -m nonregression | |
# env: | |
# CI: true | |
- name: Upload Coverage Report as Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report-html | |
path: htmlcov/ |