updates outputs files used for checking substation model #47
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: CI-LINUX | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
tests: | |
name: "Build and test for Python ${{ matrix.python-version }}" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.11" | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Setup Micromamba | |
uses: mamba-org/setup-micromamba@v2 | |
with: | |
environment-file: ./installation/sira_env.yml | |
environment-name: sira_env | |
create-args: >- | |
python=${{ matrix.python-version }} | |
libtiff | |
libpng | |
cache-environment: true | |
- name: Install env requirements | |
shell: bash -l {0} | |
run: | | |
micromamba activate sira_env | |
pip install uv | |
uv pip install -r ./installation/sira_req.txt | |
- name: Run pytest | |
shell: bash -l {0} | |
run: | | |
micromamba activate sira_env | |
pytest | |
- name: Upload coverage data | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-data | |
path: .coverage.* | |
overwrite: true | |
include-hidden-files: true | |
if-no-files-found: warn | |