Bump release-drafter/release-drafter from 5 to 6 #770
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: Unittest | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- tf-version: 2.4.4 | |
python-version: 3.8 | |
- tf-version: 2.5.3 | |
python-version: 3.9 | |
- tf-version: 2.6.5 | |
python-version: 3.9 | |
- tf-version: 2.7.4 | |
python-version: 3.9 | |
- tf-version: 2.8.4 | |
python-version: "3.10" | |
- tf-version: 2.9.3 | |
python-version: "3.10" | |
- tf-version: 2.10.1 | |
python-version: "3.10" | |
- tf-version: 2.11.1 | |
python-version: "3.10" | |
# TF 2.12 testing is disabled for now because it requires protobuf>=3.20, while the other | |
# versions of TF require protobuf<3.20, and tensorflow-datasets is broken in such a way | |
# that it always installs the latest but it also has similar requirements. | |
# - tf-version: 2.12.0 | |
# python-version: "3.10" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install tensorflow-cpu==${{matrix.tf-version}} || pip install tensorflow==${{matrix.tf-version}} | |
pip install larq | |
pip install -e .[test] | |
- name: Test with pytest | |
run: pytest . -vv --cov=zookeeper --cov-report=xml --cov-config=.coveragerc | |
- name: Test example script # Test that the model successfully compiles. | |
run: python examples/larq_experiment.py BinaryNetMnist epochs=0 --dataset.download | |
- name: Upload coverage to Codecov | |
run: bash <(curl -s https://codecov.io/bash) -f ./coverage.xml -F unittests |