Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update asdf test action #832

Merged
merged 2 commits into from
Dec 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions .github/workflows/pytest_asdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
schedule:
- cron: '0 6 * * 1'

# execute commands with conda aware shell by default:
defaults:
run:
shell: bash -l {0}

jobs:
pytest_asdf:
name: pytest asdf
Expand All @@ -16,18 +21,29 @@ jobs:
fetch-depth: 0 # Fetch all history for all tags and branches
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-python@v4
- uses: CagtayFabry/pydeps2env@main
with:
python-version: '3.10'
- uses: actions/cache@v3
file: 'pyproject.toml'
channels: 'conda-forge defaults'
extras: 'test'
setup_requires: 'include'

- uses: mamba-org/provision-with-micromamba@main
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}
restore-keys: |
${{ runner.os }}-pip-
environment-file: ./environment.yml
environment-name: weldx
cache-env: true
extra-specs: |
python=3.10
pip

- name: activate env
run: micromamba activate weldx

- name: pip installs
run: |
pip install -e .[test]
python -m pip install -e .

- name: run asdf schema pytest
run: |
pytest --asdf-tests --ignore=weldx/tests/ --no-cov weldx/schemas/
Expand Down