Skip to content

Stringify environment variables for Windows #82

Stringify environment variables for Windows

Stringify environment variables for Windows #82

Workflow file for this run

name: test in Unix environment
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
platform:
- ubuntu
- macos
conan:
- 1
- 2
runs-on: ${{ matrix.platform }}-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: install environment
uses: ./.github/actions/install-nix
- name: add Redirectory
run: |
conan remote add redirectory https://conan.jfreeman.dev
# TODO: Possible to authenticate with ${GITHUB_TOKEN}?
- name: install dependencies
run: |
poetry install
- name: export cupcake.cmake
if: matrix.conan == 1
run: |
conan export submodules/project-template-cpp/cupcake cupcake.cmake/alpha@github/thejohnfreeman
- name: export cupcake.cmake
if: matrix.conan == 2
run: |
conan export submodules/project-template-cpp/cupcake --version alpha --user github --channel thejohnfreeman
- name: test project
run: |
poetry run pytest tests --cov cupcake
poetry run pytest submodules/project-template-cpp/tests --cov cupcake --cov-append --builder cupcake