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

Only test on Ubuntu #4

Merged
merged 5 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
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
24 changes: 0 additions & 24 deletions .github/workflows/code-quality-main.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/code-quality-pr.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use one pre-commit config
# Further information at https://github.com/pre-commit/action

name: Code Quality

on:
pull_request:
branches: [main, "release/*", "dev"]
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: pre-commit/[email protected]
14 changes: 10 additions & 4 deletions .github/workflows/test-env.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Helpful resources:
# 1.) https://autobencoder.com/2020-08-24-conda-actions/
# 2.) https://github.com/conda-incubator/setup-miniconda

name: Test Env

on:
Expand All @@ -14,15 +18,17 @@ jobs:
fail-fast: false
matrix:
# os: ["ubuntu-latest", "macos-latest", "windows-latest"] # Openslide not available via conda on Windows
os: ["ubuntu-latest", "macos-latest"]
os: ["ubuntu-latest"]
defaults:
run:
shell: bash -el {0} # Need to adjust shell to remember profile
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
activate-environment: anaconda-client-env
environment-file: environment.yaml
auto-activate-base: false
- shell: bash -l {0}
run: |
- run: |
conda info
conda list