Update numpy requirement from <2.0 to <3.0 in /requirements #71
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
# tests.yml | |
name: tests | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
container: tensorflow/tensorflow:${{ matrix.version }} | |
strategy: | |
matrix: | |
version: | |
- 2.16.1 | |
- 2.15.0 | |
- 2.14.0 | |
- 2.13.0 | |
- 2.12.0 | |
- 2.11.0 | |
- 2.10.0 | |
- 2.9.0 | |
- 2.8.0 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies and pidgan | |
shell: bash | |
run: | | |
pip install --upgrade pip build | |
pip install -r requirements/base.txt -r requirements/tests.txt | |
apt-get update | |
apt-get -y upgrade | |
apt-get install -y python3-venv | |
python -m build | |
pip install dist/*.whl --force-reinstall --no-deps | |
apt-get install -y git-all | |
pip install git+https://github.com/landerlini/hopaas_client.git # hopaas-client not yet on PyPI | |
- name: Run pytest checks | |
shell: bash | |
env: | |
HOPAAS_TOKEN: ${{ secrets.HOPAAS_TOKEN }} | |
run: | | |
python tests/config/config.py --no-interactive -t "$HOPAAS_TOKEN" | |
pytest --cov tests/ | |
- name: Upload coverage to Codecov | |
shell: bash | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
run: | | |
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step | |
curl -Os https://uploader.codecov.io/latest/linux/codecov | |
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM | |
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig | |
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM | |
shasum -a 256 -c codecov.SHA256SUM | |
chmod +x codecov | |
./codecov -R . -t "$CODECOV_TOKEN" |