forked from andreasvc/pyre2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request andreasvc#47 from sarnold/py-cleanup
CI, python, and cmake cleanup
- Loading branch information
Showing
19 changed files
with
405 additions
and
306 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: CondaDev | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Test on Python ${{ matrix.python-version }} and ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['ubuntu-22.04', 'macos-13'] | ||
python-version: ['3.9', '3.10', '3.11', '3.12'] | ||
env: | ||
OS: ${{ matrix.os }} | ||
PYTHON: ${{ matrix.python-version }} | ||
PYTHONIOENCODING: utf-8 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: conda-incubator/setup-miniconda@v3 | ||
env: | ||
PY_VER: ${{ matrix.python-version }} | ||
with: | ||
activate-environment: pyre2 | ||
channels: conda-forge | ||
allow-softlinks: true | ||
channel-priority: flexible | ||
show-channel-urls: true | ||
|
||
- name: Cache conda packages | ||
id: cache | ||
uses: actions/cache@v4 | ||
env: | ||
# Increase this value to reset cache and rebuild the env during the PR | ||
CACHE_NUMBER: 0 | ||
with: | ||
path: /home/runner/conda_pkgs_dir | ||
key: | ||
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-${{hashFiles('environment.devenv.yml') }} | ||
restore-keys: | | ||
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}- | ||
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}- | ||
- name: Configure condadev environment | ||
shell: bash -el {0} | ||
env: | ||
PY_VER: ${{ matrix.python-version }} | ||
run: | | ||
conda config --set always_yes yes --set changeps1 no | ||
conda config --add channels conda-forge | ||
conda install conda-devenv | ||
conda devenv | ||
- name: Build and test | ||
shell: bash -el {0} | ||
env: | ||
PY_VER: ${{ matrix.python-version }} | ||
run: | | ||
source activate pyre2 | ||
python -m pip install .[test] -vv | ||
python -m pytest -v . |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.