This repository has been archived by the owner on Feb 10, 2024. It is now read-only.
Bump coverage from 6.5.0 to 7.4.0 in /extra_requirements #798
Workflow file for this run
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: Test package | |
# Trigger this code when a new release is published | |
on: | |
workflow_dispatch: | |
release: | |
types: [ created ] | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
update: | |
name: "${{ matrix.package }} py_${{ matrix.python-version }}" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: False | |
matrix: | |
python-version: ["3.9", "3.10"] | |
package: [strax, straxen, wfsim, pema] | |
steps: | |
# Setup and installation | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# cache: 'pip' | |
# cache-dependency-path: 'extra_requirements/requirements-tests.txt' | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Install requirements | |
run: | | |
pip install -r extra_requirements/requirements-tests.txt | |
pip install -r requirements.txt | |
# Secrets and required files | |
- name: patch utilix file | |
# Patch this file if we want to have access to the database | |
run: bash .github/scripts/create_readonly_utilix_config.sh | |
env: | |
# RunDB | |
RUNDB_API_URL: ${{ secrets.RUNDB_API_URL }} | |
RUNDB_API_USER_READONLY: ${{ secrets.RUNDB_API_USER_READONLY }} | |
RUNDB_API_PASSWORD_READONLY: ${{ secrets.RUNDB_API_PASSWORD_READONLY}} | |
PYMONGO_URL: ${{ secrets.PYMONGO_URL }} | |
PYMONGO_USER: ${{ secrets.PYMONGO_USER }} | |
PYMONGO_PASSWORD: ${{ secrets.PYMONGO_PASSWORD }} | |
PYMONGO_DATABASE: ${{ secrets.PYMONGO_DATABASE }} | |
# SCADA | |
SCADA_URL: ${{ secrets.SCADA_URL }} | |
SCADA_VALUE_URL: ${{ secrets.SCADA_VALUE_URL }} | |
SCADA_USER: ${{ secrets.SCADA_USER }} | |
SCADA_LOGIN_URL: ${{ secrets.SCADA_LOGIN_URL }} | |
SCADA_PWD: ${{ secrets.SCADA_PWD }} | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: 4.2 | |
# Run tests | |
- name: Test packages | |
run: bash .github/scripts/do_tests.sh ${{ matrix.package }} | |
# Done | |
- name: goodbye | |
run: echo "tests done, bye bye" |