Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
searscr committed May 20, 2024
1 parent 2d25b3a commit 9f324e3
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,23 @@ jobs:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true

- name: Setup libmamba solver
run: |
conda install -n base conda-libmamba-solver
conda config --set solver libmamba
conda install boa -c conda-forge
- name: Install requirements
run: |
# --quiet should turn off progress bars to make logs more readable
conda env create --file environment.yml --quiet
- name: pylint
run: pre-commit run -a pylint
- name: Install shiver
run: python -m pip install -e .
- name: Run tests
run: xvfb-run --server-args="-screen 0 1920x1080x24" -a python -m pytest --cov=src --cov-report=xml --cov-report=term
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
- name: Install requirements
run: |
conda install -n base conda-libmamba-solver
conda config --set solver libmamba
conda env create --file environment.yml --quiet
- name: pylint
run: pre-commit run -a pylint
- name: Install shiver
run: python -m pip install -e .
- name: Run tests
run: xvfb-run --server-args="-screen 0 1920x1080x24" -a python -m pytest --cov=src --cov-report=xml --cov-report=term
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

conda-build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9f324e3

Please sign in to comment.