Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Li committed Jun 19, 2024
1 parent 4f0c1c8 commit 97900ce
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 45 deletions.
66 changes: 34 additions & 32 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,39 @@ permissions:

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniconda-version: "latest"
channels: anaconda
channel-priority: true

- name: Create conda environment
run: conda env create -f devtools/conda-envs/environment.yml

- name: Activate conda environment
shell: bash -l {0}
run: conda activate autosolvate

- name: Install additional dependencies if needed
run: conda install --yes flake8 pytest

- name: Test with pytest
run:
mkdir -p test-reports
conda run -n autosolvate pytest --junitxml=test-reports/results.xml

- name: Upload Test Reports
uses: actions/upload-artifact@v3
with:
name: test-reports
path: test-reports/results.xml
- uses: actions/checkout@v3

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniconda-version: "latest"
channels: anaconda
channel-priority: true

- name: Create conda environment
run: conda env create -f devtools/conda-envs/environment.yml

- name: Activate conda environment
shell: bash -l {0}
run: conda activate autosolvate

- name: Install additional dependencies if needed
run: conda install --yes flake8 pytest

- name: Create test reports directory
run: mkdir -p test-reports

- name: Test with pytest
run: conda run -n autosolvate pytest --junitxml=test-reports/results.xml

- name: Check if pytest results file exists
run: ls -la test-reports/

- name: Upload Test Reports
uses: actions/upload-artifact@v3
with:
name: test-reports
path: test-reports/results.xml
48 changes: 35 additions & 13 deletions .github/workflows/download-artifact.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,43 @@
name: Download Artifacts
name: Download Test Reports

on: workflow_dispatch
on: [push, pull_request]

permissions:
contents: read

jobs:
fetch-reports:
runs-on: ubuntu-latest
build:

runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Download Test Reports
uses: actions/download-artifact@v3
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
name: test-reports
path: downloaded-reports
auto-update-conda: true
miniconda-version: "latest"
channels: anaconda
channel-priority: true

- name: Create conda environment
run: conda env create -f devtools/conda-envs/environment.yml

- name: Activate conda environment
shell: bash -l {0}
run: conda activate autosolvate

- name: Display Report
run: |
cat downloaded-reports/results.xml
- name: Install additional dependencies if needed
run: conda install --yes flake8 pytest

- name: Test with pytest
run:
mkdir -p test-reports
conda run -n autosolvate pytest --junitxml=test-reports/results.xml

- name: Upload Test Reports
uses: actions/upload-artifact@v3
with:
name: test-reports
path: test-reports/results.xml

0 comments on commit 97900ce

Please sign in to comment.