Skip to content

Commit

Permalink
pathcing GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AxelHenningsson committed May 15, 2024
1 parent 036fb98 commit 616c07c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/python-package-conda-macos-py38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10.0
- name: Set up Python 3.10.11
uses: actions/setup-python@v2
with:
python-version: 3.10.0
python-version: 3.10.11
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
python --version
sudo conda install python=3.10.0
sudo conda install -c conda-forge xrd_simulator
conda install python=3.10.11
conda install -c conda-forge xrd_simulator
- name: Lint with flake8
run: |
sudo conda install flake8
conda install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=xfab
- name: Test with pytest
run: |
sudo conda install pytest
conda install pytest
pytest
8 changes: 4 additions & 4 deletions .github/workflows/python-package-run-tests-macos-py38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:
- name: Install dependencies
run: |
python --version
sudo conda install python=3.10.11
sudo conda install -c conda-forge matplotlib numpy meshio pygalmesh scipy numba pycifrw dill xfab
conda install python=3.10.11
conda install -c conda-forge matplotlib numpy meshio pygalmesh scipy numba pycifrw dill xfab
python -m pip install .
- name: Lint with flake8
run: |
sudo conda install flake8
conda install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=xfab
- name: Test with pytest
run: |
sudo conda install pytest
conda install pytest
pytest

0 comments on commit 616c07c

Please sign in to comment.